-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trivy: Image scanning doesn't appear to use local images #539
Comments
Looking through Trivy issues, it looks like you can scan local images by name, but not by image id, and we seem to be scanning by id: aquasecurity/trivy#1506 Furthermore, there is conflicting information about scanning local images with containerd. One issue claims it should work (since 0.29?): aquasecurity/trivy#851 Another issue claims it doesn't actually work (on EKS): aquasecurity/trivy#2540 Things to investigate:
|
related: aquasecurity/trivy#3048 |
Local scanning by ImageID can't be done with trivy at present. Trivy uses Searching the containerd store is complicated by a few factors. Trivy mangles the image names in a way that messes things up. Trivy also only searches the Trivy tends to support things in the Docker store a little better. There's only one namespace, so it's a little simpler. A podman socket isn't needed. When trying to resolve an image reference, trivy goes through 1) the local docker store, 2) the local podman store, 3) the local containerd store, and 4) by looking it up in a registry. The error message about podman is just a side-effect of that resolution process. |
@mook-as internally, trivy will prefix |
Thank you! Also for all the information in the following comment! Please keep us updated with any progress, so we can try to improve local image scanning in Rancher Desktop, even if just for a subset of use cases. |
If that were the case, then simply
|
It looks like when we scan images, we're not scanning the local images; this means that:
Steps to reproduce:
mookas/junk:latest
(that image is set to private in Docker Hub)Expected results:
Actual results:
The text was updated successfully, but these errors were encountered: