Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General rules clean up #392

Merged
merged 2 commits into from
Jan 11, 2024
Merged

Conversation

mikegcoleman
Copy link
Contributor

What type of PR is this?

Uncomment one (or more) /kind <> lines:
/kind cleanup

/area plugins

There were some grammatical errors in the rules themselves. Also some rules output messages were wrong (e.g. it would say "an object was created" when the rule was for deletion). I also separated some rules into two rules - in particular I tried to create "delete" and "modify" rules separately since I think admins would prefer to have more specificity in their output.

Which issue(s) this PR fixes:
Fixes #391

Special notes for your reviewer:

Signed-off-by: Mike Coleman <[email protected]>
@poiana
Copy link
Contributor

poiana commented Jan 4, 2024

Welcome @mikegcoleman! It looks like this is your first PR to falcosecurity/plugins 🎉

@poiana poiana added the size/L label Jan 4, 2024
@leogr
Copy link
Member

leogr commented Jan 9, 2024

Hey @mikegcoleman

It looks like there're some yaml validation issues. Could you take a look at the failing tests and fix them, please?

For example https://github.com/falcosecurity/plugins/actions/runs/7414200888/job/20294145856?pr=392

Signed-off-by: Mike Coleman <[email protected]>
@mikegcoleman
Copy link
Contributor Author

@leogr fixed the formatting issues. took a note to run the yaml validator before submitting a PR next time :)

Copy link

Rules files suggestions

gcp_auditlog_rules.yaml

Comparing 77d72e0768f297e5a896ecf8678e1abeebfa15a9 with latest tag gcpaudit-0.2.2

Major changes:

  • Rule GCP IAM serviceAccount key deleted has been removed
  • Rule GCP IAM serviceAccount deleted has been removed
  • Rule GCP IAM serviceAccount modified has been removed
  • Rule GCP backendService deleted has been removed
  • Rule GCP IAM serviceAccount created has been removed
  • Rule GCP IAM serviceAccount key created has been removed
  • Rule GCP IAM principle modified has been removed
  • Rule GCP cloud function updated or deleted has been removed
  • Rule GCP KMS updated or deleted has been removed
  • Rule GCP Pub/Sub Subscriber modified has been removed

Minor changes:

  • Version dependency to plugin gcpaudit has been incremented
  • Rule GCP IAM service account created has been added
  • Rule GCP cloud function modified has been added
  • Rule GCP KMS deleted has been added
  • Rule GCP IAM service account deleted has been added
  • Rule GCP IAM policy modified has been added
  • Rule GCP logging sink deleted has been added
  • Rule GCP Pub/Sub subscription deleted has been added
  • Rule GCP IAM service account modified has been added
  • Rule GCP cloud function deleted has been added
  • Rule GCP backend service deleted has been added
  • Rule GCP IAM service account key deleted has been added
  • Rule GCP KMS updated has been added
  • Rule GCP Pub/Sub subscription modified has been added
  • Rule GCP IAM service account key created has been added

@leogr
Copy link
Member

leogr commented Jan 11, 2024

Major changes:

  • Rule GCP IAM serviceAccount key deleted has been removed
  • Rule GCP IAM serviceAccount deleted has been removed
  • Rule GCP IAM serviceAccount modified has been removed
  • Rule GCP backendService deleted has been removed
  • Rule GCP IAM serviceAccount created has been removed
  • Rule GCP IAM serviceAccount key created has been removed
  • Rule GCP IAM principle modified has been removed
  • Rule GCP cloud function updated or deleted has been removed
  • Rule GCP KMS updated or deleted has been removed
  • Rule GCP Pub/Sub Subscriber modified has been removed

Note for releasers: we can just bump the minor since the major is still 0
cc @LucaGuerra @Andreagit97 @jasondellaluce

Copy link
Member

@leogr leogr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @mikegcoleman

@leogr fixed the formatting issues. took a note to run the yaml validator before submitting a PR next time :)

All good now!

Thank you for this PR 👏

@poiana
Copy link
Contributor

poiana commented Jan 11, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: leogr, mikegcoleman

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana
Copy link
Contributor

poiana commented Jan 11, 2024

LGTM label has been added.

Git tree hash: c1ddb2d29737afa468576f67647a128c16193e90

@poiana poiana merged commit 8fe6a6f into falcosecurity:master Jan 11, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clean up GCP Audit Logs rules file
3 participants