claircore icon indicating copy to clipboard operation
claircore copied to clipboard

Does there exist a "vendor-independent" format to report container content

Open rmohr opened this issue 4 years ago • 2 comments

Hi,

we are building in kubevirt containers without a base image but which are built out of RPMs (they are built in a reproducible way without dnf and rpm). Therefore we don't have a rpmdb to share for clair and we also don't ship the rpm tool inside the container.

Is there something like an independent json/yaml file format which we could use, so that clair could simploy copy that info out and interpret it?

rmohr avatar Oct 12 '21 10:10 rmohr

I think perhaps an SBOM might be the way to go. Eg. SPDX

jasinner avatar Jun 05 '22 23:06 jasinner

Yes, something like an SBOM would be the thing to use, although claircore doesn't have any indexers for those at the moment.

The bigger problem to solve would be where the vulnerability data comes from for the packages reported in the SBOM. I think we'd match against the ambient/language-level data we have, which will probably be incorrect if the container has packages from a distributor that does backports and whatnot.

The other thing to think about is the ELF annotations, which should eventually trickle to everything using rpm.

hdonnay avatar Jun 09 '22 15:06 hdonnay