Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Docker registry auth #18541

Merged
merged 2 commits into from Mar 22, 2023

Conversation

stuhood
Copy link
Sponsor Member

@stuhood stuhood commented Mar 21, 2023

As reported in #18533, the bollard crate does not implement Docker registry auth. The docker_credential crate does though (including invoking credential helpers if necessary).

This change was tested to suffice for auth against AWS ECR registries (which use the docker-credential-ecr-login helper).

Fixes #18533.

@stuhood stuhood added needs-cherrypick category:bugfix Bug fixes for released features labels Mar 21, 2023
@stuhood stuhood added this to the 2.15.x milestone Mar 21, 2023
@stuhood stuhood enabled auto-merge (squash) March 21, 2023 23:41
@stuhood stuhood merged commit b23df09 into pantsbuild:main Mar 22, 2023
17 checks passed
@stuhood stuhood deleted the stuhood/docker-credentials branch March 22, 2023 16:42
stuhood added a commit to stuhood/pants that referenced this pull request Mar 22, 2023
As reported in pantsbuild#18533, the `bollard` crate does not implement Docker
registry auth. The `docker_credential` crate does though (including
invoking [credential
helpers](https://docs.docker.com/engine/reference/commandline/login/#credential-helper-protocol)
if necessary).

This change was tested to suffice for auth against AWS ECR registries
(which use the `docker-credential-ecr-login` helper).

Fixes pantsbuild#18533.
stuhood added a commit to stuhood/pants that referenced this pull request Mar 22, 2023
As reported in pantsbuild#18533, the `bollard` crate does not implement Docker
registry auth. The `docker_credential` crate does though (including
invoking [credential
helpers](https://docs.docker.com/engine/reference/commandline/login/#credential-helper-protocol)
if necessary).

This change was tested to suffice for auth against AWS ECR registries
(which use the `docker-credential-ecr-login` helper).

Fixes pantsbuild#18533.
stuhood added a commit that referenced this pull request Mar 22, 2023
As reported in #18533, the `bollard` crate does not implement Docker
registry auth. The `docker_credential` crate does though (including
invoking [credential
helpers](https://docs.docker.com/engine/reference/commandline/login/#credential-helper-protocol)
if necessary).

This change was tested to suffice for auth against AWS ECR registries
(which use the `docker-credential-ecr-login` helper).

Fixes #18533.
stuhood added a commit that referenced this pull request Mar 22, 2023
As reported in #18533, the `bollard` crate does not implement Docker
registry auth. The `docker_credential` crate does though (including
invoking [credential
helpers](https://docs.docker.com/engine/reference/commandline/login/#credential-helper-protocol)
if necessary).

This change was tested to suffice for auth against AWS ECR registries
(which use the `docker-credential-ecr-login` helper).

Fixes #18533.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bugfix Bug fixes for released features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for authentication for docker environments
3 participants