Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Fix basic auth on notary cli#1652

Open
kminami wants to merge 1 commit intonotaryproject:masterfrom
kminami:master
Open

Fix basic auth on notary cli#1652
kminami wants to merge 1 commit intonotaryproject:masterfrom
kminami:master

Conversation

@kminami
Copy link
Copy Markdown

@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 <keisuke.minami@toshiba.co.jp>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant