Skip to content

chore: update oras-go to v2.7.0 #2275

Description

@TerryHowe

oras-go v2.7.0 has been released. ORAS CLI currently depends on oras.land/oras-go/v2 v2.6.4; update go.mod to v2.7.0.

Notable changes in v2.7.0:

  • Behavior change: v2.6.4 rejected bearer realms on private addresses, which broke split-host registries such as self-hosted GitLab (v2.6.4 broken with RFC1918 IPs oras-go#1631). The new default denylist blocks loopback, link-local, unspecified, and cloud metadata addresses, but no longer blocks RFC 1918, IPv6 unique-local, or CGNAT addresses. The new auth.Client.BlockedRealmPrefixes field makes this configurable.
  • Authentication now works after a same-host HTTP-to-HTTPS redirect.
  • Copy and verification fixes: FilterArtifactType matching for referrers with an empty config and for image indexes; PreCopy returning SkipNode after a declined cross-repo mount; clearer error for a source that fails after all declared bytes.

Things to check when bumping:

  • Update go.mod / go.sum to v2.7.0
  • Decide whether ORAS CLI should expose or set BlockedRealmPrefixes, or keep the library default
  • Unit and e2e tests pass, including any that assert on ErrTrailingData or on realm rejection

Activity

  1. added
    enhancement
    help wanted
    good first issue
    on Oct 23, 2026
  2. dhvani7014 commented on Oct 23, 2026

    @dhvani7014
    Contributor

    Hi @TerryHowe, I'd like to work on this. I'll bump oras-go to v2.7.0, keep the default for BlockedRealmPrefixes unless you'd prefer it exposed in the CLI, and make sure the unit and e2e tests pass. Could you assign it to me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions