-
Notifications
You must be signed in to change notification settings - Fork 573
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
Add support for Mariner distribution #1220
Comments
Hi @eric-desrochers, thanks for the report. The reason why we aren't picking up any vulnerabilities here is because although we do have basic support to identify the Mariner distribution, we don't have any of Mariner's vulnerability data in the Grype database. Vunnel ("vulnerability funnel", a tool we just released) will need to have support added to parse the Mariner vulnerability database. Once that's done and integrated into our nightly database maintenance process, then we should be able to detect those vulnerabilities. We can add this issue to our backlog, but if you'd like to tackle this project before we get to it, please let us know and we can point you in the right direction. The best place to start will probably be the Vunnel docs here: https://github.com/anchore/vunnel/blob/main/README.md And we have built a very simple example provider to get people started implementing a new data source: https://github.com/anchore/vunnel/blob/main/example/README.md We think the Oval file you linked in this issue will be the right place to start ingesting vulnerability data in Vunnel. Cc: @westonsteimel |
Thanks @tgerla for the quick update. |
Hi @eric-desrochers, We've started working on this, but wanted to confirm the correct download link, since we'll be downloading new data nightly. Is https://raw.githubusercontent.com/microsoft/CBL-MarinerVulnerabilityData/main/cbl-mariner-2.0-oval.xml the right link, or is there another CDN for this data? Also, we noticed that there's a 1.0 and 2.0 of the xml file. I assume those report vulnerabilities in 1.0 and 2.0 of the Mariner distro respectively? Is there a place where we can query which versions of mariner we should expect to find an OVAL XML file for? We were also wondering whether this OVAL XML is the final format, or whether this format is still in flux? |
That's right, the link to our Mariner 2.0 OVAL file to use as a data source:
Your assumption is correct. Please ignore Mariner 1.0 as it will reach EOL in July. Let's only focus on Mariner 2.0 support.
What version of Mariner or what version of Mariner's binary packages ?
This is the final OVAL file format. Other scanning vendor are using it. |
The support is already found in syft codebase if it help as a reference: |
Thanks for the quick answers @eric-desrochers !
I was wondering whether there's a list of valid mariner versions somewhere. For example, there are 1.0 and 2.0 XML files in the repo, but apparently 1.0 is almost EOL. Are there other versions of Mariner, or will there be in the future? Is there a way to programmatically know which ones we should try to download vulnerabilities for? |
To answer your question we are only releasing Major Release.
|
We are about to release the PRs linked above, but we just learned that Mariner Linux has been renamed to Azure Linux. Since we haven't released this yet, we thought it might be a good idea to stop and rename it, so that we release once under the long-term name, rather than having to release a rename later. But we have a couple of questions:
|
Definitely not in Mariner 2.0 lifetime. Possibly in 3.0 release. @bcombs-msft will keep you posted.
Definitely not in Mariner 2.0 lifetime. Possibly in 3.0 release. @bcombs-msft will keep you posted.
It is only for AKS Container host that Mariner has been rebranded but |
Thanks for the quick answers! We have added the Mariner Linux vulnerability feed to vunnel, and grype has picked it up. Example run against Mariner 2.0 (grype command from first comment on this issue):
I'm going to close this, since I believe it's fully implemented, but please let us know if anything is still missing. |
What version of |
The current version of |
Do you have any update on the public documentation ? |
👋 Hey @eric-desrochers! I've made a quick PR that adds mariner to our README which shows it as an officially supported distrobution Here is a quick screenshot that shows grype now working with the image you provided at the top of this issue: If you want more coverage or had something else in mind let me know and we can workshop to get it added =) |
What happened:
Although Mariner (https://github.com/Microsoft/CBL-Mariner) seems to be in the support distro list:
https://github.com/anchore/grype/blob/main/grype/distro/type.go#L11-L27
The vulnerability scan doesn't work.
What you expected to happen:
We expect Grype to detect CVEs for Mariner container.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Our core container image:
mcr.microsoft.com/cbl-mariner/base/core:2.0
Oval file:
https://raw.githubusercontent.com/microsoft/CBL-MarinerVulnerabilityData/main/cbl-mariner-2.0-oval.xml
Environment:
grype version
:[0000] INFO grype version: 0.61.0
cat /etc/os-release
or similar):The text was updated successfully, but these errors were encountered: