Skip to content

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

Merged
Samruddhi Khandale (samruddhikhandale) merged 1 commit into
devcontainers:mainfrom
EyeDevelop:eyedevelop/add-leniency-for-registries
Sep 3, 2024
Merged

Samruddhi Khandale (samruddhikhandale) merged 1 commit into
devcontainers:mainfrom
EyeDevelop:eyedevelop/add-leniency-for-registries

Conversation

@EyeDevelop

@EyeDevelop Hans Goor (EyeDevelop) commented Aug 30, 2024 •

Copy link
Copy Markdown
Contributor

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
Hans Goor (EyeDevelop) requested a review from a team as a code owner August 30, 2024 19:32

@chrmarti Christof Marti (chrmarti) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, thanks!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, thanks!

@samruddhikhandale
Samruddhi Khandale (samruddhikhandale) merged commit 11587da into devcontainers:main Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants