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

Not showing all the violations #16

Open
rvgud opened this issue Dec 27, 2022 · 1 comment
Open

Not showing all the violations #16

rvgud opened this issue Dec 27, 2022 · 1 comment

Comments

@rvgud
Copy link

rvgud commented Dec 27, 2022

It seems opa-scorecard can only get the violations available in the Status field of any constraint. Which are not always the complete list of violations according the to gatekeeper documentation.
is it possible to get all the violations somehow?

@ctrought
Copy link

It seems opa-scorecard can only get the violations available in the Status field of any constraint. Which are not always the complete list of violations according the to gatekeeper documentation. is it possible to get all the violations somehow?

You could give this a try https://github.com/open-policy-agent/contrib/tree/main/gatekeeper_mtail_violations_exporter . Rather than relying on the constraint statuses which may be incomplete it scrapes the audit logs and exposes metrics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants