Skip to content

Store full image reference during oras backup #1893

Done

Description

@AustinAbro321

What is the version of your ORAS CLI

1.3.0

What would you like to be added?

I would like the full image reference to be stored in the image during oras backup.

I can see a few ways of accomplishing this:

  • We could add the entire image reference to org.opencontainers.image.title.
  • If we have an appetite for breaking changes, we could simply add the entire image reference to org.opencontainers.image.ref.name
  • We could add the tag to org.opencontainers.image.ref.name and the base name to org.opencontainers.image.base.name

Why is this needed for ORAS?

As a maintainer of an air-gap packaging tool called Zarf, I would like Zarf to be able to automatically determine the name of images stored in image tars that my user's add to their package. The docker save command for instance always stores the full image reference under io.containerd.image.name so even if users have images from 10 different repositories, Zarf will know the reference for each when it pushes these images to the air-gap registry.

I would be happy to implement this, however I do not know which annotation strategy the oras project would like to use.

Are you willing to submit PRs to contribute to this feature?

  • Yes, I am willing to implement it.

Activity

  1. added
    enhancement
    triage
    on Nov 5, 2025
  2. wangxiaoxuan273 commented on Nov 5, 2025

    @wangxiaoxuan273
    Contributor

    @shizhMSFT @Wwwsylvia @sajayantony Maintainers, please take a look. cc: @FeynmanZhou

    This issue should be marked with "feature request".

  3. added
    spec required
    and removed
    triage
    on Nov 5, 2025
  4. shizhMSFT commented on Nov 5, 2025

    @shizhMSFT
    Contributor

    @TerryHowe @FeynmanZhou It is a sub scenario of backing up / restoring multiple repositories across registries.

  5. TerryHowe commented on Nov 5, 2025

    @TerryHowe
    Member

    Interesting alternatives proposed.

    To review the alternatives I attempted:

    1. Tag each image with original registry/repository:tag or repository:tag
    2. Store artifacts backed up in directories based on repository name

    One other alternative I was going to look at is add an SBOM to the backup that would correlate the images to the repository or registry/repository.

    Pretty much a duplicate of #730 but this is a smaller subset of the problem in #730

  6. FeynmanZhou commented on Nov 6, 2025

    @FeynmanZhou
    Member

    Sounds like a valid scenario! @AustinAbro321 thanks for proposing this. We will assign this issue to you.

    I personally vote for adding the entire image reference to org.opencontainers.image.title. This looks like more consistent with the OCI image spec.

  7. AustinAbro321 commented on Nov 13, 2025

    @AustinAbro321
    ContributorAuthor

    I went with a simple solution in #1904 of only adding the annotation during backup. This is good enough for my purposes, and to close this issue.

    I am curious if there should be a broader stance by oras. As a consumer of oras-go it seems like functions like oras.Copy() expect the entire reference under org.opencontainers.image.ref.name, however this doesn't align with oras backup

  8. github-actions commented on Jan 13, 2026

    @github-actions

    This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

  9. added
    stale
    on Jan 13, 2026
  10. added and removed
    stale
    on Jan 18, 2026
  11. github-actions commented on Mar 20, 2026

    @github-actions

    This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

  12. added
    stale
    on Mar 20, 2026
  13. removed
    stale
    on Mar 22, 2026
  14. github-actions commented on May 22, 2026

    @github-actions

    This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

  15. added
    stale
    on May 22, 2026
  16. added this to the v1.4.0 milestone on May 23, 2026
  17. removed
    stale
    on Oct 12, 2026
  18. modified the milestones: v1.4.0, v1.5.0 on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementspec required

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions