-
Notifications
You must be signed in to change notification settings - Fork 797
Description
I want to be able to inspect an OCI artifact, and then cross-reference it with vulnerability metadata to understand if the artifact has any published statements about its vulnerability or affected-ness.
I think I need two things in order to do this:
- Some identifier that associates the image with a stream of updates. For other kinds of content, I think this is typically mitre's CPE id.
- Some identifier that indicates what increment the artifact is in that stream of updates. For this,
org.opencontainers.image.versionlooks like the best bet to me.
Note - I can't just use the registry and repository for the stream identifier.
First, I want to be able to operate on images after they've left their registry or repository of origin, and still successfully cross-reference them with vulnerability statements.
Second, It's possible for a vendor to provide multiple "streams" in the same repository by updating two different floating tags, for example if they have an older version of their software for which they publish updates to a v1 tag and a newer version of their software for which they publish updates to a v2 tag, all in the same repository. v1 may be affected while v2 is not. When inspecting an image, I need to know which stream it belongs to in order to figure out whether published vulnerability metadata claims it is affected or not.
- Do you know of any standard or semi-standard ways of declaring the product/stream membership on an individual image (say, with a
org.mitre.cpe.idannotation?) - Is the community around the OCI image-spec interested in exploring the addition of such an annotation to the OCI image-spec (say, with a documented
org.opencontainers.image.streamororg.opencontainers.image.cpeannotation?)