-
Notifications
You must be signed in to change notification settings - Fork 60
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
Scanning Container images in a Kubernetes Release with Snyk #4
Comments
The kubernetes sbom lists all images we push out to the registries as part of a release. You can get all images from the release SBOM like this:
|
@PushkarJ I am interested in contributing to this issue. |
/assign @nehaLohia27 |
Below is the list of container images from curl command. Does this list have all of the container images or not ? curl -L https://sbom.k8s.io/v1.22.1/release | grep 'PackageName: k8s.gcr.io/' | awk '{print $2}' % Total % Received % Xferd Average Speed Time Time Time Current |
All that are part of a Kubernetes release, yes. Keep in mind that there are other images (say |
This is great progress @nehaLohia27 . Can you pick one or two of these images and run a snyk scan on them? Here's a useful guide to get started. PS: (Don't share the scan report here :) ) @puerco those set of images are exactly what I was expecting from SBOM but I agree that we can and should include more images in future. Curious, Is there a way to get a JSON Response from SBOM URL? I suspect converting to JSON would not be hard on client side but if there is some sort of flag to get the results in JSON directly, that would be fantastic :) On that note, Is there a way for us to get a list of images mentioned here: https://github.com/kubernetes/k8s.io/tree/main/k8s.gcr.io programmatically? I imagine the images from SBOM are a subset of images from this directory in the same repo |
@PushkarJ I have installed snyk on my local machine and ran the scan on few of the container images from sbom url response. Curious to know, do we need to identify all the images from this https://github.com/kubernetes/k8s.io/tree/main/k8s.gcr.io ? |
This is fantastic progress @nehaLohia27 you already, knocked out first three items in the umbrella issue for container images 🎉 Next steps could be two fold in IMO, but please share your thoughts as well as I maybe missing something 😄
|
Thanks @PushkarJ @puerco for helping on this :). I will work on the shell scripting. Will post the issues if any. @puerco do you have any idea on how can we extract the list of images that are not part of k8s release but are part of https://github.com/kubernetes/k8s.io/tree/main/k8s.gcr.io , using any commands or urls ? |
@PushkarJ created the draft PR for shell script code. kubernetes/test-infra#23419 |
/transfer sig-security |
Fixed by kubernetes/test-infra#23419 |
Background
There are lot of places where images related to Kubernetes can be found:
Goal
xref: #3
/sig security release
Side note: This issue might be transferred to
kubernetes-sigs/security
when it is createdThe text was updated successfully, but these errors were encountered: