bug(misconf): Stack overflow from using input.aws.iam.groups[_]
in Rego
#5866
Labels
kind/bug
Categorizes issue or PR as related to a bug.
scan/misconfiguration
Issues relating to misconfiguration scanning
Milestone
Discussed in #5865
Originally posted by brsolomon-deloitte January 3, 2024
Description
Passing Trivy a custom Rego policy that uses
input.aws.iam.groups[_]
for Terraform code will cause afatal error: stack overflow
error.Desired Behavior
Should be able to run
trivy config
successfully using custom Rego policy.Actual Behavior
Reproduction Steps
main.tf
the example shown at https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_user_group_membershippolicy.rego
trivy config --config-policy=policy.rego --severity=CRITICAL --namespaces=user .
...
Target
Filesystem
Scanner
Misconfiguration
Output Format
None
Mode
None
Debug Output
See above.
Operating System
macOS 14.2
Version
Checklist
trivy image --reset
The text was updated successfully, but these errors were encountered: