Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: Support OCI reference types #1434

Closed
developer-guy opened this issue Aug 16, 2022 · 4 comments
Closed

FR: Support OCI reference types #1434

developer-guy opened this issue Aug 16, 2022 · 4 comments
Labels
lifecycle/stale question Further information is requested

Comments

@developer-guy
Copy link
Contributor

Once I run crane copy, it'll (at the time of writing this) copy only the image itself, but the image may have other materials attached to it such as SBOMs, attestations, signatures, etc. cosign copy command supports that, but in crane, we do not have support for this, so, it'd be better copying these materials (if any) with the image itself optionally.

cc: @Dentrax @imjasonh

@developer-guy developer-guy added the question Further information is requested label Aug 16, 2022
@imjasonh
Copy link
Collaborator

To put this in crane we'll need to rely on the new APIs and conventions proposed by the OCI reference types working group:

We expect these spec changes to be merged in soon 🤞, then for these changes to start trickling out to registry implementations over the next few years. The fallback behavior described in those changes relies on tag naming conventions, for compatibility with registries that haven't adopted the new specs yet.

@jdolitsky has been hacking on changes to go-containerregistry and crane to add support for these APIs here: main...oci-playground:main

When these APIs and conventions are adopted and the changes above are merged into ggcr, the idea is you'll be able to crane cp -R <src> <dst> (-R for --recursive) and not only copy the source image, but all artifacts that reference it, SBOMs, signatures, attestations, cat pictures, whatever.

@imjasonh imjasonh changed the title question: can crane support copying supply chain materials (if exists) in addition to copy image itself? FR: Support OCI reference types Aug 16, 2022
@developer-guy
Copy link
Contributor Author

It looks like these PRs are merged, so shall we start working on this issue?

@imjasonh
Copy link
Collaborator

imjasonh commented Oct 6, 2022

It looks like these PRs are merged, so shall we start working on this issue?

See #1455

@github-actions
Copy link

github-actions bot commented Jan 5, 2023

This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Keep fresh with the 'lifecycle/frozen' label.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/stale question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants