Skip to content

OCI artifact referrers should be listed in the index.json of an OCI-layout #4695

@Silvanoc

Description

@Silvanoc

Description

Cosign v3 "attaches" the generated signature to an OCI artifact through a referrer/subject relationship. But the OCI-layout index.json is only listing the manifest of the signed artifact. As a consequence:

  • the existence of such a relationship is not visible at all at OCI layout level
  • it can only be found scanning all the blobs of the OCI layout

It would be meaningful having the referrers (at least cosign signature) being listed in the OCI layout index.json. Additionally it would be helpful to have those entries providing the subject field, making that way the whole relationship explicit at index.json level.

All the information is being gathered anyway to be able to save everything:

  • the referrers are identified to be able to fetch the signature with the artifact
  • the content of the manifests is partially used to generate the index.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions