Image Registry credentials required ? #1078
-
Hello Trivy team, I'm Stephen a mentee of LFX(Linux foundation) summer 21', I'm working on a project for my program which is to develop an Image Vulnerability scanner and output the result in Kubernetes Policy Report CRD. here is the issue: kubernetes-sigs/wg-policy-prototypes#54, also the discussion is on the Kubernetes wg-policy channel https://kubernetes.slack.com/archives/C906A4GAF. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
First of all, if an image is in a local Docker (or Podman) daemon, Trivy simply uses it. If it doesn't exist locally, Trivy needs to pull the image from a registry. Kubernetes is most likely not using Docker, so Trivy can't scan local images. FYI: Starboard is able to levarage imagePullSecrets for pulling an image. |
Beta Was this translation helpful? Give feedback.
First of all, if an image is in a local Docker (or Podman) daemon, Trivy simply uses it. If it doesn't exist locally, Trivy needs to pull the image from a registry. Kubernetes is most likely not using Docker, so Trivy can't scan local images.
FYI: Starboard is able to levarage imagePullSecrets for pulling an image.