Skip to content

legacy docker config is not supported #1143

Closed

Description

@qweeah

What happened in your environment?

Suppose we have below configuration in the registry config file:

{
  ...
  "auths": {
    "https://my.registry.io/": {
      "auth": "************",
      "email": ""
    }
  }
  ...
}

ORAS commands won't pick up the stored auth credentials when interacting with registry my.registry.io

What did you expect to happen?

If this legacy format is not deprecated, ORAS should use the credentials in the docker config with legacy format.

How can we reproduce it?

  1. Change the stored credentials into legacy format: Found an entry of your registry config file, add prefix https:// to the registry key name to the entry.
  2. Use ORAS commands against the modified registry, if authentication is required, the command will end with 401.

What is the version of your ORAS CLI?

v1.1.0

What is your OS environment?

Ubuntu 20.04

Are you willing to submit PRs to fix it?

  • Yes, I am willing to fix it.

Activity

  1. added
    bug
    on Oct 12, 2023
  2. added this to the future milestone on Oct 12, 2023
  3. modified the milestones: future, v1.2.0 on Oct 17, 2023
  4. qweeah commented on Nov 23, 2023

    @qweeah
    ContributorAuthor

    Fixed by #1154

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

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions