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

Fix basic auth on notary cli #1652

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

kminami
Copy link

@kminami kminami commented Sep 22, 2022

When notary-server is protected with Basic authentication (namely returns 401 and WWW-Authenticate: Basic), notary cli fails with no basic auth credentials error for readOnly API accesses. It is because basicHandler is created with anonymous passwordStore in that case.

I fixed this issue with forcing non-anonymous access for basic challenges. It only affects notary-servers that are protected with Basic authentication.

Signed-off-by: Keisuke Minami <[email protected]>
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.

1 participant