Skip to content

[release/1.7] remotes: add handling for missing basic auth credentials#9235

Merged
estesp merged 1 commit intocontainerd:release/1.7from
dmcgowan:backport-1.7-fix-basic-auth-error
Oct 16, 2023
Merged

[release/1.7] remotes: add handling for missing basic auth credentials#9235
estesp merged 1 commit intocontainerd:release/1.7from
dmcgowan:backport-1.7-fix-basic-auth-error

Conversation

@dmcgowan
Copy link
Copy Markdown
Member

When a credential handler is provided but no basic auth credentials are provided, handle the error specifically rather than treating the credentials as not implemented. This allows a clearer error to be provided to users rather than a confusing not implemented error or generic unauthorized error.

Add unit tests for the basic auth case.

Backport #9234

(cherry picked from commit 51c9ffe)

When a credential handler is provided but no basic auth credentials
are provided, handle the error specifically rather than treating
the credentials as not implemented. This allows a clearer error to
be provided to users rather than a confusing not implemented error
or generic unauthorized error.

Add unit tests for the basic auth case.

Signed-off-by: Derek McGowan <[email protected]>
(cherry picked from commit 51c9ffe)
Signed-off-by: Derek McGowan <[email protected]>
@estesp estesp merged commit 9211aff into containerd:release/1.7 Oct 16, 2023
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