Skip to content

cli/config/configfile: normalize hostname when resolving auth#6846

Draft
thaJeztah wants to merge 1 commit intodocker:masterfrom
thaJeztah:normalize_authconfig
Draft

cli/config/configfile: normalize hostname when resolving auth#6846
thaJeztah wants to merge 1 commit intodocker:masterfrom
thaJeztah:normalize_authconfig

Conversation

@thaJeztah
Copy link
Member

Previously, normalization was done before calling these functions, which required implementations to normalize before using.

Move the normalization into the GetAuthConfig, GetCredentialsStore, so that non-normalized hostnames will be able to resolve the correct auth.

- What I did

- How I did it

- How to verify it

- Human readable description for the release notes

cli/config/configfile: `GetAuthConfig`, `GetCredentialsStore`: normalize hostname when resolving auth

- A picture of a cute animal (not mandatory but encouraged)

Previously, normalization was done before calling these functions,
which required implementations to normalize before using.

Move the normalization into the GetAuthConfig, GetCredentialsStore,
so that non-normalized hostnames will be able to resolve the correct
auth.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 75.00000% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cli/config/configfile/file.go 71.42% 1 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

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.

2 participants