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

generate_violations_csv script #106

Merged
merged 2 commits into from
Sep 9, 2024
Merged

generate_violations_csv script #106

merged 2 commits into from
Sep 9, 2024

Conversation

lions1988
Copy link
Contributor

This PR generate csv report that contains enabled violations in ACS

  • Gets ACS API key and API Central URL as environment variables
  • Mandatory --query_scope will limit the query for specific cluster, specific cluster and namespace or all violations
  • Pulls all violations based on the query provided, loop through every violation (aka alert_id) and pull the image(s) violating the policy
  • Saves an csv files under generated reports folder

@github-actions github-actions bot added the external-contributor To add to issues and PRs from external contributors label Sep 8, 2024
Copy link
Collaborator

@mfosterrox mfosterrox left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@mfosterrox mfosterrox left a comment

Choose a reason for hiding this comment

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

Nice job. I'll be trying this out a little later in the week. Thanks!

@mfosterrox mfosterrox merged commit 3625e6d into stackrox:main Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external-contributor To add to issues and PRs from external contributors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants