You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
What I found surprising is that checks for specific CFN properties are evaluated lazy. What I would expect instead is that across all resources the given rule would be enforced.
If the resource that it's being evaluated against does not define BillingMode the rule check will be successful, but in this particular case what I am really trying to do is achieve consistency across my template and specify certain behaviour which will be ignored.
To Reproduce
Please supply:
An example rule set and template that results in the error
The commands you used to invoke the tool
The output of a -vvv log level if it's not related to cfn-guard-lambda, or the relevant CloudWatch log messages if it is related to the lambda
NOTE: Please be sure that the templates, rule sets and logs you provide as part of your bug report do not contain any sensitive information.
A bit confused on this. We currently expose the --strict-checks flag as documented in the README. Does using --strict-checks not work?
Think this is the main ask that doesn't already exist if I understand correctly: Optionally this should be enabled per ruleset file by specifying the mode
PatMyron
changed the title
--strict in ruleset itself
--strict-checks in ruleset itself
Nov 12, 2020
Describe the bug
What I found surprising is that checks for specific CFN properties are evaluated lazy. What I would expect instead is that across all resources the given rule would be enforced.
Example:
If I define a rule as below:
If the resource that it's being evaluated against does not define
BillingMode
the rule check will be successful, but in this particular case what I am really trying to do is achieve consistency across my template and specify certain behaviour which will be ignored.To Reproduce
Please supply:
-vvv
log level if it's not related to cfn-guard-lambda, or the relevant CloudWatch log messages if it is related to the lambdaNOTE: Please be sure that the templates, rule sets and logs you provide as part of your bug report do not contain any sensitive information.
I had defined a ruleset as follows:
and run it against the template:
By running command:
The end result was successful validation.
Instead I was expecting an error:
Expected behavior
A clear and concise description of what you expected to happen.
I wanted to propose a change on how the rule is being evaluated by allowing to specify strict matching attributes against the rules.
Optionally this should be enabled per ruleset file by specifying the mode as first instruction of ruleset
or through alternative syntax.
Screenshots
If applicable, add screenshots to help explain your problem.
Operating System:
MacOS
OS Version
10.15.7
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: