Skip to content

Optionally support crane/docker style auth for greater compatibility #1239

Closed as duplicate

Description

@ktarplee

What is the version of your ORAS CLI

main

What would you like to be added?

I would like a flag called --simple-auth. If the flag is not present then the existing behavior is used. Specifically creating a single auth.newCache() and used for all targets (source and destination). If the flag is present then a new auth.NewSingleContextCache() (definition) is created for each target (source and destination).

Why is this needed for ORAS?

See this issue for the details.

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

  • Yes, I am willing to implement it.

Activity

  1. added
    enhancement
    triage
    on Jan 10, 2024
  2. ktarplee commented on Jan 10, 2024

    @ktarplee
    Author

    Ideally a flag would not be needed but I do not see how to do that yet.

  3. added
    good first issue
    and removed
    triage
    on Jan 16, 2024
  4. added this to the v1.3.0 milestone on Jan 16, 2024
  5. iambahmanop commented on Jan 19, 2024

    @iambahmanop
    Contributor

    Can I work on this? // @yizha1

  6. Bharadwajshivam28 commented on Feb 26, 2024

    @Bharadwajshivam28

    If anyone is not working on this then I can take on this but I need steps to get started
    Thanks..

  7. modified the milestones: v1.3.0, future on Mar 14, 2024
  8. tanyabhatnagar commented on Jul 2, 2025

    @tanyabhatnagar
    Contributor

    @yizha1 @FeynmanZhou hello, i would like to work on this issue. can you please assign it to me?

  9. shizhMSFT commented on Jul 4, 2025

    @shizhMSFT
    Contributor

    @tanyabhatnagar Thanks for offering the contribution! Since this issue is in the future backlog, it means we need to discuss its validity before the actual implementation. You are welcome to contribute to the design spec. Once the spec is finalized (for larger features) or the discussion is closed with a consensus (for smaller features), we can proceed to implementation. Otherwise, all related PRs are treated as drafts or demos.

  10. added
    question
    spec required
    and removed
    good first issue
    on Jul 4, 2025
  11. TerryHowe commented on Oct 22, 2026

    @TerryHowe
    Member

    Duplicate of #1892. Both come from the same root cause: oras copy shares one auth cache between source and destination, so separate credentials for the same registry collide (oras-project/oras-go#650). The fix is tracked in #1892 as part of the oras-go v3 migration (#2008), so closing this to keep the discussion in one place.

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

    enhancementquestionspec required

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions