Replies: 4 comments 2 replies
-
This seems to be related to case sensitivity. I got rid of the false positive with securityContext:
capabilities:
drop:
- ALL |
Beta Was this translation helpful? Give feedback.
-
@giorod3 Would you take a look? |
Beta Was this translation helpful? Give feedback.
-
Opening and tracking this as a bug: #4604 as it seems to be case sensitive, |
Beta Was this translation helpful? Give feedback.
-
@simar7 see kubernetes/pod-security-admission#11 (comment) In addition to not matching the spec, which is a problem in and of itself, the most likely problem that might arise in practice is that trivy will NOT catch this in CI/CD but a compliant admission controller WILL reject it when it is applied to the cluster. |
Beta Was this translation helpful? Give feedback.
-
Checklist
-f json
that shows data sources and make sure that the security advisory is correct.Description
$ trivy config FILE.yaml
on a K8s deployment file throws the following error despite a capabilities drop all directive being present.FILE.yaml
JSON Output of run with
-debug
:Output of
trivy -v
:Additional details (base image name, container registry info...):
Beta Was this translation helpful? Give feedback.
All reactions