Replies: 2 comments 3 replies
-
|
Hi @matdtr ! Here I have provided an answer that will help you. #9628 |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
Duplicate of #9624 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hi,
since yesterday on our pipelines the trivy (running v0.56.2) misconfiguration checks on terraform are failing due to:
fs scan error: scan error: scan failed: failed analysis: post analysis error: post analysis error: helm scan error: scan config error: failed to init rego scanner: 11 errors occurred:
home/jenkins/.cache/trivy/policy/content/policies/cloud/policies/aws/ec2/specify_ami_owners.rego:32: rego_type_error: undefined ref: input.aws.ec2.requestedamis[local622]
input.aws.ec2.requestedamis[local622]
^
have: "requestedamis"
want (one of): ["instances" "launchconfigurations" "launchtemplates" "networkacls" "securitygroups" "subnets" "volumes" "vpcs"]
home/jenkins/.cache/trivy/policy/content/policies/cloud/policies/google/compute/enable_subnetwork_private_google_access.rego:36: rego_type_error: undefined ref: subnetwork.privateipgoogleaccess.value
subnetwork.privateipgoogleaccess.value
^
have: "privateipgoogleaccess"
want (one of): ["__defsec_metadata" "enableflowlogs" "name" "purpose"]
home/jenkins/.cache/trivy/policy/content/policies/cloud/policies/google/compute/enable_subnetwork_private_google_access.rego:37: rego_type_error: undefined ref: subnetwork.privateipgoogleaccess.explicit
subnetwork.privateipgoogleaccess.explicit
^
have: "privateipgoogleaccess"
want (one of): ["__defsec_metadata" "enableflowlogs" "name" "purpose"]
home/jenkins/.cache/trivy/policy/content/policies/cloud/policies/google/compute/enable_subnetwork_private_google_access.rego:40: rego_type_error: undefined ref: subnetwork.privateipgoogleaccess
subnetwork.privateipgoogleaccess
^
have: "privateipgoogleaccess"
want (one of): ["__defsec_metadata" "enableflowlogs" "name" "purpose"]
home/jenkins/.cache/trivy/policy/content/policies/cloud/policies/google/compute/enable_subnetwork_private_google_access.rego:46: rego_type_error: undefined ref: subnetwork.privateipgoogleaccess.value
subnetwork.privateipgoogleaccess.value
^
have: "privateipgoogleaccess"
want (one of): ["__defsec_metadata" "enableflowlogs" "name" "purpose"]
home/jenkins/.cache/trivy/policy/content/policies/cloud/policies/google/compute/enable_subnetwork_private_google_access.rego:47: rego_type_error: undefined ref: subnetwork.privateipgoogleaccess.explicit
subnetwork.privateipgoogleaccess.explicit
^
have: "privateipgoogleaccess"
want (one of): ["__defsec_metadata" "enableflowlogs" "name" "purpose"]
home/jenkins/.cache/trivy/policy/content/policies/cloud/policies/google/compute/enable_subnetwork_private_google_access.rego:50: rego_type_error: undefined ref: subnetwork.privateipgoogleaccess
subnetwork.privateipgoogleaccess
^
have: "privateipgoogleaccess"
want (one of): ["__defsec_metadata" "enableflowlogs" "name" "purpose"]
home/jenkins/.cache/trivy/policy/content/policies/cloud/policies/google/iam/configure_audit_logging.rego:50: rego_type_error: undefined ref: project.auditconfigs[]
project.auditconfigs[]
^
have: "auditconfigs"
want (one of): ["__defsec_metadata" "autocreatenetwork" "bindings" "members"]
home/jenkins/.cache/trivy/policy/content/policies/cloud/policies/google/iam/configure_audit_logging.rego:63: rego_type_error: undefined ref: project.auditconfigs[]
project.auditconfigs[]
^
have: "auditconfigs"
want (one of): ["__defsec_metadata" "autocreatenetwork" "bindings" "members"]
home/jenkins/.cache/trivy/policy/content/policies/cloud/policies/google/storage/enable_bucket_logging.rego:37: rego_type_error: undefined ref: bucket.logging.logbucket.value
bucket.logging.logbucket.value
^
have: "logging"
want (one of): ["__defsec_metadata" "bindings" "enableuniformbucketlevelaccess" "encryption" "location" "members" "name"]
rego_compile_error: error limit reached
]```
Reproduction Steps
Target
Filesystem
Scanner
Misconfiguration
Output Format
JSON
Mode
Standalone
Debug Output
Operating System
docker
Version
Checklist
trivy clean --allBeta Was this translation helpful? Give feedback.
All reactions