Skip to content

Way to document the stream or cpe that an image belongs to? #1213

@ralphbean

Description

@ralphbean

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:

  1. 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.
  2. Some identifier that indicates what increment the artifact is in that stream of updates. For this, org.opencontainers.image.version looks 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.id annotation?)
  • 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.stream or org.opencontainers.image.cpe annotation?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions