Skip to content

docs: replace asset annotations with OCI ownership referrer (DONT MERGE)#142

Draft
piotrjanik wants to merge 1 commit into
open-component-model:mainfrom
piotrjanik:referrer
Draft

docs: replace asset annotations with OCI ownership referrer (DONT MERGE)#142
piotrjanik wants to merge 1 commit into
open-component-model:mainfrom
piotrjanik:referrer

Conversation

@piotrjanik
Copy link
Copy Markdown

Updates §6.3 of the OCI storage backend spec to trace assets to their owning Component Version via a separate ownership referrer manifest (linked through the OCI subject field), instead of mutating the artifact with annotations. This matches ADR 0015 and keeps the artifact's digest and any existing OCI signatures intact.

  • Defines the referrer manifest (artifact type application/vnd.ocm.software.ownership.v1+json, empty config/layer, same repository as the artifact) and discovery via the OCI Referrers API with tag-schema fallback.
  • Rewrites integrity (§6.3.2) and verification (§6.3.3) around the referrer; drops the obsolete software.ocm.base.digest annotation and the ociArtifactDigest/v1 annotation-stripping normalization.
  • Requires referrers to travel with the artifact across registries and OCI Image Layouts.

Fixes: open-component-model/ocm-project#1031

What this PR does / why we need it

Which issue(s) this PR is related to

@piotrjanik piotrjanik changed the title docs: replace asset annotations with OCI ownership referrer docs: replace asset annotations with OCI ownership referrer (DONT MERGE) May 2, 2026
<!-- markdownlint-disable MD041 -->

Updates §6.3 of the OCI storage backend spec to trace assets to their
owning Component Version via a separate *ownership referrer* manifest
(linked through the OCI `subject` field), instead of mutating the
artifact with annotations. This matches ADR 0015 and keeps the
artifact's digest and any existing OCI signatures intact.

- Defines the referrer manifest (artifact type
  `application/vnd.ocm.software.ownership.v1+json`, empty config/layer,
  same repository as the artifact) and discovery via the OCI Referrers
  API with tag-schema fallback.
- Rewrites integrity (§6.3.2) and verification (§6.3.3) around the
  referrer; drops the obsolete `software.ocm.base.digest` annotation
  and the `ociArtifactDigest/v1` annotation-stripping normalization.
- Requires referrers to travel with the artifact across registries and
  OCI Image Layouts.

<!--
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->

Fixes: open-component-model/ocm-project#1031
Signed-off-by: Piotr Janik <piotr.janik@sap.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update OCM Spec with Asset-to-Owner Referrer Approach

1 participant