Replies: 4 comments 1 reply
-
thanks for the report. let me check it |
Beta Was this translation helpful? Give feedback.
0 replies
-
@ngraf could you retest your cluster with the latest Trivy version? thanks |
Beta Was this translation helpful? Give feedback.
0 replies
-
@afdesk , |
Beta Was this translation helpful? Give feedback.
1 reply
-
@ngraf I've crteated #7573 for more investigation. |
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
-
Description
trivy k8s
scans the irrelevant image that is mentioned inmetadata:annotations:kubectl.kubernetes.io/last-applied-configuration
instead of the image used inspec
ofkind:Deployment
.The scenario where this bug becomes a real problem is, if you do the following:
kubectl apply
helm
that do not create/update themetadata:annotations:kubectl.kubernetes.io/last-applied-configuration
annotation.. this is what happened to me. It took me a looong time, to find out why trivy gives me unexpected CVEs.
Desired Behavior
Images from
spec
are scanned.Actual Behavior
Images from
metadata:annotations:kubectl.kubernetes.io/last-applied-configuration
are scanned.Reproduction Steps
trivy k8s
scan that targets this deploymentTarget
Kubernetes
Scanner
Vulnerability
Output Format
JSON
Mode
None
Debug Output
Operating System
MacOs Sequioa 15.0
Version
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions