-
Notifications
You must be signed in to change notification settings - Fork 128
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
gcp-iam-audit-log-v1 Policy Is Not Working #176
Comments
In cft scorecard, the conversion leverages terraform validator converter which only takes bindings field from iam_policy and implicitly dropping audit_configs field. Is there any CV client that works fine with audit_configs field? |
@katze120 Are you sure scorecard doesn't provide it? Scorecard uses the type from tfvalidator but nothing else. |
yes, from actual test results and also the Asset struct definition in addition to links provided above When I bypass tfvalidator and directly try to convert |
Got it, so we're likely encountering the same issue as Forseti (the protodef for IAM policies doesn't include audit_configs). |
Is this due to the same issue as #367? |
From my understanding on the discussion, to fix this issue, we need
Is that correct? |
@xingao267 Your analysis is correct. I'd be happy to look at a PR if you have a chance to fix this. |
Opening this in Forseti repo, since this affects Forseti and not other Config Validator clients.
The problem is that gcp-iam-audit-log-v1 policy does not work in forseti because the
audit_config
field gets ignored when converting from CAI json to proto.Edit: Moving this to the policy-library since this is affecting not just Forseti.
The text was updated successfully, but these errors were encountered: