Skip to content

cli/command: remove uses of GetAuthConfigKey, ParseRepositoryInfo - #5942

Merged
thaJeztah merged 1 commit into
docker:masterfrom
thaJeztah:simplify_auth_step1
Mar 20, 2025
Merged

cli/command: remove uses of GetAuthConfigKey, ParseRepositoryInfo#5942
thaJeztah merged 1 commit into
docker:masterfrom
thaJeztah:simplify_auth_step1

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

Re-implement locally, based on the code in github.com/docker/docker/registry, but leaving out bits that are not used on the client-side, such as configuration of Mirrors, and configurable insecure-registry, which are not used on the client side.

- Human readable description for the release notes

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

Re-implement locally, based on the code in github.com/docker/docker/registry,
but leaving out bits that are not used on the client-side, such as
configuration of Mirrors, and configurable insecure-registry, which
are not used on the client side.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@codecov-commenter

codecov-commenter commented Mar 19, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 0% with 15 lines in your changes missing coverage. Please review.

Project coverage is 59.39%. Comparing base (0442a73) to head (79141ce).
Report is 10 commits behind head on master.

❌ Your patch status has failed because the patch coverage (0.00%) is below the target coverage (50.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@ Coverage Diff @@## master #5942 +/- ##
==========================================
- Coverage 59.43% 59.39% -0.04% 
==========================================
Files 358 358 Lines 29769 29775 +6 ==========================================
- Hits 17694 17686 -8 - Misses 11107 11122 +15 + Partials 968 967 -1 
🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@thaJeztahthaJeztah added this to the 28.0.3 milestone Mar 19, 2025
@thaJeztah

Copy link
Copy Markdown
MemberAuthor

Thanks!

@thaJeztah
thaJeztah merged commit e002576 into docker:masterMar 20, 2025
@thaJeztah
thaJeztah deleted the simplify_auth_step1 branch March 20, 2025 10:10
// a copy of [registry.IndexServer].
//
// [registry.IndexServer]: https://pkg.go.dev/github.com/docker/docker/registry#IndexServer
const authConfigKey = "https:/index.docker.io/v1/"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A drive-by comment: This should have // in https://.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OMG! 🙈 Would that be it??

I was looking over the code multiple times to see where I went wrong, and this ... definitely could be it!

I'm not sure we ever met in person, but if we do (I hope we will, one day), I owe you a 🍻 (or any other beverage) ❤️

@thaJeztahthaJeztah self-assigned this May 16, 2025
@thaJeztahthaJeztah mentioned this pull request Aug 20, 2025
8 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/authenticationkind/refactorPR's that refactor, or clean-up codestatus/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@thaJeztah@codecov-commenter@mtrmac@Benehiko@vvoland