Skip to content

internal/client/auth/challenge: cleanups and minor refactor#4832

Merged
milosgajdos merged 4 commits into
distribution:mainfrom
thaJeztah:challenge_cleanup
Apr 12, 2026
Merged

internal/client/auth/challenge: cleanups and minor refactor#4832
milosgajdos merged 4 commits into
distribution:mainfrom
thaJeztah:challenge_cleanup

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

internal/client/auth/challenge: simpleManager: un-export fields

Un-export the mutex and Challenges field.

internal/client/auth/challenge: simpleManager: make zero value usable

internal/client/auth/challenge: cleanup URL-normalization

  • change normalizeURL to not mutate the input URL.
  • move lowercasing into canonicalAddr.

internal/client/auth/challenge: fix minor linting issues

Un-export the mutex and Challenges field.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
- change normalizeURL to not mutate the input URL.
- move lowercasing into canonicalAddr.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah marked this pull request as ready for review April 4, 2026 19:39
@thaJeztah

Copy link
Copy Markdown
Member Author

Had these changes when I was working on cutting the dependency from go-containerregistry;

@thaJeztah thaJeztah requested a review from milosgajdos April 4, 2026 19:40
@milosgajdos milosgajdos merged commit 6ae29aa into distribution:main Apr 12, 2026
21 checks passed
@thaJeztah thaJeztah deleted the challenge_cleanup branch April 13, 2026 12:15
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