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

Add more leniency towards registries that malform WWW-Authenticate. #884

Conversation

EyeDevelop
Copy link
Contributor

@EyeDevelop EyeDevelop commented Aug 30, 2024

Some OCI registries return a mangled WWW-Authenticate header. For example, versions of Sonatype Nexus Repository Manager return:

WWW-Authenticate: BASIC realm="..."

The current handling of the WWW-Authenticate header leaves the CLI to error when pushing to these registries. This commit adds more leniency and accepts weirdly capitalised versions of the header also.

Some OCI registries return a mangled WWW-Authenticate header. For
example, versions of Sonatype Nexus Repository Manager return:

WWW-Authenticate: BASIC realm="..."

The current handling of the WWW-Authenticate header leaves the CLI to
error when pushing to these registries. This commit adds more leniency
and accepts weirdly capitalised versions of the header also.
@EyeDevelop EyeDevelop requested a review from a team as a code owner August 30, 2024 19:32
Copy link
Contributor

@chrmarti chrmarti left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Copy link
Member

@samruddhikhandale samruddhikhandale left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@samruddhikhandale samruddhikhandale merged commit 11587da into devcontainers:main Sep 3, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants