(feat): Add support for scanning openEuler images#839
(feat): Add support for scanning openEuler images#839wjunLu wants to merge 2 commits intoanchore:mainfrom
Conversation
Signed-off-by: wjunLu <wjunlu217@gmail.com>
Signed-off-by: wjunLu <wjunlu217@gmail.com>
|
@ALL! |
|
Hi, @ALL! Could any committers or maintainers help see this PR? |
|
Hi @wjunLu! I will try to take a look. Please be advised that |
|
Hi @wjunLu I noticed that https://repo.openeuler.org/security/data/csaf/cve/ doesn't host any sort of archive. Red Hat and SUSE (and others) for their CSAF data have a distribution schema like this (you can see Red Hat's example at https://security.access.redhat.com/data/csaf/v2/vex/ )
This means a vunnel provider can:
In this way, we have one big download, and then a small handful of small downloads (whatever changed since the archive was compiled, say one week worth of new data). This significantly reduces the network round trips and makes the vunnel provider much, much faster. Can you request to openEuler that they adopt something like this? Can you tell me where I can file such a reqeust? |
Thank you very much! I will let openEuler community know your request and try to push openEuler community provide those files as Redhat. |
|
Thank you @wjunLu ! I believe that Red Hat is following https://docs.oasis-open.org/csaf/csaf/v2.0/os/csaf-v2.0-os.html#7-distributing-csaf-documents and additionally providing a tar.zstd archive for efficiently starting a new download. There's some client implementation here: https://github.com/gocsaf/csaf . There's some SUSE CSAF stuff under https://ftp.suse.com/pub/projects/security/, though it's not as easy to consume as Red Hat's. |
|
Also, there is the https://osv.dev bulk data dump of the openEuler vulnerability data in OSV json format at https://osv-vulnerabilities.storage.googleapis.com/openEuler/all.zip. We do prefer going upstream for the data, but if there are any serious issues with fetching the individual files that could potentially be an option. |
|
@wjunLu I just learned of https://repo.openeuler.org/security/data/osv/all.json which seems like it will have all the info we need for now. I'll update to use that and start working to get this PR in. Thanks for the contribution! Edit: all.json is just a list of URLs to OSV files; I think the only path forward for this provider is to download the zip files from OSV.dev, since https://repo.openeuler.org/security/data/csaf/cve/ doesn't have any reasonable archive to download. |
Support for openEuler
This commit aims to support scanning openEuler docker images.
I have tested it, the result looks good for me
openeuler/openeuler:22.03-lts-sp1: 3 vulnerabilitiesopeneuler/openeuler:24.03-lts-sp2: 0 vulnerabilityRelatived Issue
anchore/grype#2747