Skip to content

Simplify Docker Credential Helper configuration for Notation authentication #600

@FeynmanZhou

Description

@FeynmanZhou

What is the areas you would like to add the new feature to?

Notation CLI

Is your feature request related to a problem?

To achieve maximum compatibility with existing systems, docker credential helpers and its protocol are adopted as the credential helpers for Notation registry authentication.

It requires cumbersome steps to configure docker credential helpers when users log in to a registry. Users will encounter an authentication problem in Linux as follows if the Docker Credential Helper configuration is not configured or misconfigured:

Error: could not get the credentials store: failed to load config file, error: credentials store config was not set up

We need to simplify the authentication experience and remove dependency on Docker Credential Helper configuration.

What solution do you propose?

Integrate oras-credentials-go library to simplify this authentication experience and remove the dependency. This library will be able to read credentials from the Docker configuration file.

My expectation is that if there is Docker Hub registry credential stored in the Docker configuration file, users will be able to log in to Docker Hub without additional configuration and input username/password.

What alternatives have you considered?

No

Any additional context?

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions