-
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
sqladmin.googleapis.com/Instance requireSSL Not Triggering #124
Comments
Please test in Forseti. Entangling separate problems in one issue makes it harder to test. |
@jdyke I opened #125 to address the issue in the constraint template. I tested the conversion in Terraform Validator and it looks like it properly converts the requireSsl prop:
|
The same problem happens with For So I suspect for
I haven't tested it yet for |
@FanchenBao Yes, I suspect you are correct. a PR is welcome, of course. |
@morgante @AdrienWalkowiak I've verified this rule works from config-validator, but is still not working from the Forseti scanner, which reports no violation. Even after #125 and #127 |
@ocervell Does it work with Scorecard? |
Any update on this @ocervell? |
@AdrienWalkowiak @ocervell This was likely fixed for Forseti with this PR. Forseti had some incorrect logic where it was setting falsy values to None. The change can be tested from master branch of Forseti; will be included in v2.26.0. |
gcp_sql_ssl_v1.yaml template:
Is looking for:
asset.resource.settings.ipConfiguration.requireSsl == false
but the CAI returns:
It looks like it is missing "data" so I added it to the template:
asset.resource.data.settings.ipConfiguration.requireSsl == false
but that still does not catch the entry:
The text was updated successfully, but these errors were encountered: