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

Why push permission is required for GET v2/_catalog ? #3165

Closed
akrasnov-drv opened this issue May 20, 2020 · 1 comment
Closed

Why push permission is required for GET v2/_catalog ? #3165

akrasnov-drv opened this issue May 20, 2020 · 1 comment

Comments

@akrasnov-drv
Copy link

akrasnov-drv commented May 20, 2020

Hi
Recently I configured token auth and acl access for our new registry, and faced a problem getting list of images without admin rights?
User with only pull permission gets "401 Unauthorized" for GET /v2/_catalog, though no problem getting image info or downloading images.
The following acl fixed a problem

- match: {account: "name", type: "registry", name: "catalog"}
    actions: ["*"]
    comment: "user may work with catalog"

For me it looks like a bug. R/O access requires full permissions (actions: ["*"])
If it was intentional for some reason please provide a link to relevant discussion.
Otherwise please fix.
// it's the case for both registry:2 and registry:2.7.1

@dmcgowan
Copy link
Collaborator

Read permission is scoped per repository. The catalog endpoint is considered an administrative action as it spans all repositories. The scopes themselves are not wildcards as that can be difficult to do securely.

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

No branches or pull requests

2 participants