Replies: 2 comments 2 replies
-
|
This is really strange, as far as I recall we're not supposed to return 401 on /v2 on anonymous if enabled https://github.com/project-zot/zot/blob/main/pkg/api/authn.go#L392 |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
This has been converted to an issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there!
I'm trying to set up a registry with read-only anonymous access. My configuration goes as follow:
{ "storage": { "rootDirectory": "/var/lib/zot/data" }, "http": { "realm": "zot", "address": "0.0.0.0", "port": "5000", "compat": [ "docker2s2" ], "auth": { "htpasswd": { "path": "/var/lib/zot/htpasswd" } }, "accessControl": { "metrics": { "users": [ "hello" ] }, "repositories": { "**": { "anonymousPolicy": [ "read" ], "defaultPolicy": [ "read", "create" ] } } } }, "log": { "level": "debug" }, }When executing an authenticated request, everything goes well:
Anonymous request on the other hand fail:
Any idea what could be causing the anonymous access to fail?
Beta Was this translation helpful? Give feedback.
All reactions