-
Notifications
You must be signed in to change notification settings - Fork 127
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
IAM Audit log policy validation seems producing false positives #367
Comments
For your case, I suspect it's because there are additional audit logs enabled besides |
My testing CAI dataset only has that one entry. I suspect there is other bug in the rego rule. I tried to understand https://github.com/forseti-security/policy-library/blob/master/validator/iam_audit_log.rego and follow the logic there but it was quite involving. Might need some help or guidance from the original author @t12g |
I did a bit more investigation. It looks like input.asset.audit_configs is empty after CAI data is read into CFT Scorecard or CV. input.asset.bindings is there though. |
This might be a problem with the asset protos not including audit configus. |
What's the setup you have for forseti / config validator? |
I'm testing with CFT Scorecard using I guess the proto might be here https://github.com/googleapis/googleapis/blob/master/google/iam/v1/policy.proto where audit_config is not there. |
I have the following constraints and CAI data
It seems should be good and do not report violations. But when I run the CFT scorecard on those, it gives the following violation
The text was updated successfully, but these errors were encountered: