Replies: 2 comments 1 reply
-
Are you trying to ignore a check? You can do via https://aquasecurity.github.io/trivy/v0.57/docs/scanner/misconfiguration/#skipping-resources-by-inline-comments FYI Rego |
Beta Was this translation helpful? Give feedback.
-
Hi @bovy89 ! You can ignore a check by content. For example, you know that the package trivy
import rego.v1
default ignore := false
ignore if {
input.AVDID == "AVD-KSV-0114"
some line in input.CauseMetadata.Code.Lines
contains(line.Content, "validatingwebhookconfigurations")
}
You can read about ignoring checks with Rego in the documentation: https://trivy.dev/v0.57/docs/configuration/filtering/#by-rego |
Beta Was this translation helpful? Give feedback.
-
Description
I would like to ignore ksv114 rule (https://avd.aquasec.com/misconfig/ksv114), but the described config is not working anymore
Desired Behavior
exceptions not ignored
Actual Behavior
exceptions ignored
Reproduction Steps
trivy config --config-check ./trivy_policy cert-manager.yaml
Operating System
macOS Sonoma
Version
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions