oras-go
oras-go copied to clipboard
Migrate to OCI Artifact from ORAS Artifact
We will migrate to OCI Artifact from ORAS Artifact once the following PRs are merged.
- https://github.com/opencontainers/image-spec/pull/934
- https://github.com/opencontainers/distribution-spec/pull/335
Tasks:
- [x] #307
- [x] #308
- [x] #309
- [x] #310
- [x] #311
- [ ] #312
- [ ] #347
This issue covers #267 and #268.
Should we start a new branch for OCI now that you have go structs for OCI. Similarly, for oras - CLI? /cc @nima @michaelb990 @shizhMSFT
Any update on this work?
@rdpsin We will be working on this after releasing oras-go v2.0.0-rc3, which is scheduled for Sep. 5th.
Just a clarification that we'll need to maintain support for ORAS artifacts, until all registries have migrated to the OCI Artifact spec.
- Check if
/referrersis supported (best future case) - Check if
_oras/referrersis supported (limited time, as ACR, ECR and Zot migrate to/referrers) - Fallback to using OCI Image manifest, with a
refers/subjectproperty (see Rename refers field to subject #950)
Just a clarification that we'll need to maintain support for ORAS artifacts, until all registries have migrated to the OCI Artifact spec.
- Check if
/referrersis supported (best future case)- Check if
_oras/referrersis supported (limited time, as ACR, ECR and Zot migrate to/referrers)- Fallback to using OCI Image manifest, with a
refers/subjectproperty (see Rename refers field to subject #950)
The initial iteration will not have the fallback to ORAS Artifact referrers. The fallback will be added in the second iteration after proper discussions.
Oras needs to consume RC2 since it includes the subject field - https://github.com/opencontainers/image-spec/pull/958
The fallback will be added in the second iteration after proper discussions.
What fallback are we talking about here? From what I read, it seemed like falling back to ORAS Artifacts wouldn't be compatible with the tag-based fallback already proposed in the OCI distribution-spec, now an RC.
On the call today we discussed that the fall back to ORAS is not going to be supported. This issues needs to be updated to reflect that and the next update to the libraries will remove the ORAS artifact types and move to OCI with OCI image fallback.
Closing as all sub tasks are resolved.