Skip to content

Commit

Permalink
Merge pull request #379 from imjasonh/subject-processed
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjohnsonjr authored Feb 8, 2023
2 parents 8a1d68f + 5025143 commit f298409
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,9 @@ Client and registry implementations SHOULD expect to be able to support manifest

###### Pushing Manifests with Subject

When pushing an image or artifact manifest with the `subject` field and the [referrers API](#listing-referrers) returns a 404, the client MUST:
When processing a request for an image or artifact manfiest with the `subject` field, a registry implementation that supports the [referrers API](#listing-referrers) MUST respond with the response header `OCI-Subject: <subject digest>` to indicate to the client that the registry processed the request's `subject`.

When pushing an image or artifact manifest with the `subject` field and the [referrers API](#listing-referrers) returns a 404 or the `OCI-Subject` header was not set, the client MUST:

1. Pull the current referrers list using the [referrers tag schema](#referrers-tag-schema).
1. If that pull returns a manifest other than the expected image index, the client SHOULD report a failure and skip the remaining steps.
Expand Down

0 comments on commit f298409

Please sign in to comment.