feat(misconf): Add support for inline ignore in helm charts #8198
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
scan/misconfiguration
Issues relating to misconfiguration scanning
Milestone
Discussed in #8128
Originally posted by RangerRick December 18, 2024
Description
I have a false positive when doing a
trivy config
on a Helm chart directory, and I would like to ignore it (or for trivy to not detect it in the first place). As far as I can tell, there is no form of#trivy:ignore:XXXX
that is accepted.For example, I get this error:
Inside the ConfigMap, the
password_validation.py
file looks like this, it is not storing any secrets, it's just a script that implements custom password validation in Django:I have tried putting
#trivy:ignore:AVD-KSV-0109
at every line of this file, from above thepassword_validation.py:
to inside the python script.Desired Behavior
#trivy:ignore:*
is at the very least honored at the level of an entire resource in aConfigMap
#trivy:ignore:*
would be honored inside the resource, depending on what it is (in this case, a python script)ConfigMap
, it would say what line the error is, either of the resource in theConfigMap
, or the overall yaml file.Actual Behavior
The false positive is always thrown.
Reproduction Steps
Target
Filesystem
Scanner
Misconfiguration
Output Format
Table
Mode
Standalone
Debug Output
Operating System
macOS Sequoia 15.2
Version
Checklist
trivy clean --all
The text was updated successfully, but these errors were encountered: