Replies: 2 comments 7 replies
-
Hi there, the usage/use cases for both
https://aquasecurity.github.io/trivy/v0.41/docs/target/kubernetes/#commands If you want to scan container images inside your cluster for vulnerabilities specifically, I would recommend scanning them with the The trivy k8s command is mainly useful to go through cluster security issues incl. vulnerabilities (I am thinking here of different workflows but maybe other people perceive it differently). |
Beta Was this translation helpful? Give feedback.
-
I have created issue #4517 for it |
Beta Was this translation helpful? Give feedback.
-
Description
Hi everyone!
We are using Trivy in several GitLab CI/CD pipelines.
Currently we are testing the possibility to perform a kuberetes scan. I noticed that, in contrast to scanning images, none of our images from the private registry could be scanned. While looking through the documentation of 'trivy k8s' I noticed that unlike 'trivy image' the parameters '--username' and '--password' are not present. (and therefore also not the environment variables)
So it seems that you can't give 'trivy k8s' the credentials for private registrations? Is that right? Could you, like with 'trivy image', add these parameters?
What I have tested
Target
Kubernetes
Scanner
Vulnerability
Beta Was this translation helpful? Give feedback.
All reactions