Skip to content

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

Merged
vvoland merged 1 commit into
docker:masterfrom
thaJeztah:normalize_authconfig
May 8, 2026
Merged

cli/config/configfile: normalize hostname when resolving auth#6846
vvoland merged 1 commit into
docker:masterfrom
thaJeztah:normalize_authconfig

Conversation

@thaJeztah
Copy link
Copy Markdown
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)

@codecov-commenter
Copy link
Copy Markdown

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!

@thaJeztah thaJeztah force-pushed the normalize_authconfig branch 2 times, most recently from 5dd87d7 to 7dec4da Compare April 16, 2026 22:38
@thaJeztah thaJeztah marked this pull request as ready for review April 16, 2026 22:39
@thaJeztah thaJeztah added this to the 29.5.0 milestone Apr 16, 2026
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>
@thaJeztah thaJeztah force-pushed the normalize_authconfig branch from 7dec4da to 55fcffe Compare May 7, 2026 11:58
@vvoland vvoland merged commit f66e796 into docker:master May 8, 2026
93 checks passed
@thaJeztah thaJeztah deleted the normalize_authconfig branch May 8, 2026 14:08
@vvoland vvoland added area/go-sdk Changes affecting the Go SDK impact/go-sdk Noteworthy (compatibility changes) in the Go SDK labels May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/authentication area/go-sdk Changes affecting the Go SDK impact/changelog impact/go-sdk Noteworthy (compatibility changes) in the Go SDK kind/enhancement status/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants