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

Only pass domain to docker-credential-up #217

Merged
merged 1 commit into from
Aug 5, 2022

Conversation

hasheddan
Copy link
Contributor

Description of your changes

up requires that commands provide a scheme in the UP_DOMAIN, but doing
so causes a failure to match to registry domain in docker-credential-up,
meaning that a separate UP_DOMAIN value must be used for up and
docker-credential-up. This corrects that behavior to parse the hostname
from UP_DOMAIN in docker-credential-up and only pass it along as the
domain for matching.

Signed-off-by: hasheddan georgedanielmangum@gmail.com

Fixes #191

I have:

  • Read and followed Upbound's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR, as appropriate.

How has this code been tested

Verified by setting UP_DOMAIN-https://upbound.io and pushing successfully using docker push with docker-credential-up configured in ~/.docker/config.json.

up requires that commands provide a scheme in the UP_DOMAIN, but doing
so causes a failure to match to registry domain in docker-credential-up,
meaning that a separate UP_DOMAIN value must be used for up and
docker-credential-up. This corrects that behavior to parse the hostname
from UP_DOMAIN in docker-credential-up and only pass it along as the
domain for matching.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
@hasheddan hasheddan merged commit 82d7de6 into upbound:main Aug 5, 2022
@hasheddan
Copy link
Contributor Author

/backport

@github-actions
Copy link

github-actions bot commented Aug 8, 2022

Successfully created backport PR #220 for release-0.12.

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

Successfully merging this pull request may close these issues.

Docker cred helper domain can't handle providing scheme
2 participants