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
Opening this issue which apparently stems from the same problem as described in this issue which got closed due to inactivity.
Describe the issue
Related to Terraform:
checkov fails to recognize that the rule set AWSManagedRulesKnownBadInputRuleSet is configured in a WAF web ACL if the rules configuration is set using dynamic blocks.
The other issue mentioned in the one linked above mentions input cast. Please note that I encounter the issue both when priority is set as a string or as a number (I even tried explicit cast using number()).
It also mentions that the problem could be caused by the fact that the configuration is coming from locals. I tried passing it a variable and encountered the same problem.
locals {
waf_acl_default_rules=[ # also fails if passed as a variable instead of a local value// other rules ...
{
name ="AWSManagedRulesKnownBadInputsRuleSet"
priority =2# also fails when equal to "2"
override_action ="none"
managed_rule_group_statement_name ="AWSManagedRulesKnownBadInputsRuleSet"
managed_rule_group_statement_vendor_name ="AWS"
cloudwatch_metrics_enabled =true
cloudwatch_metric_name ="AWSManagedRulesKnownBadInputsRuleSet"
sampled_requests_enabled =true
}
]
}
Looking at the code I'm not sure what could be causing it.
Version (please complete the following information):
Opening this issue which apparently stems from the same problem as described in this issue which got closed due to inactivity.
Describe the issue
Related to Terraform:
checkov fails to recognize that the rule set
AWSManagedRulesKnownBadInputRuleSet
is configured in a WAF web ACL if the rules configuration is set usingdynamic
blocks.The other issue mentioned in the one linked above mentions input cast. Please note that I encounter the issue both when
priority
is set as a string or as a number (I even tried explicit cast usingnumber()
).It also mentions that the problem could be caused by the fact that the configuration is coming from
locals
. I tried passing it a variable and encountered the same problem.Examples
With the rules config defined as such:
Looking at the code I'm not sure what could be causing it.
Version (please complete the following information):
3.2.293
Additional context
Terraform version: 1.9.2
AWS provider version: 5.77.0
The text was updated successfully, but these errors were encountered: