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

Fine grained publishing rights #68

Open
line-o opened this issue Mar 16, 2021 · 0 comments
Open

Fine grained publishing rights #68

line-o opened this issue Mar 16, 2021 · 0 comments

Comments

@line-o
Copy link
Member

line-o commented Mar 16, 2021

Is your feature request related to a problem? Please describe.

Grant individual users publish rights. This will allow us to

a) to know who uploaded what
b) to limit publish rights to certain packages

Describe the solution you'd like

User "Anne" is granted publishing rights for package "Blobber".
Anne can now POST to /publish and will receive a 201 or 200 for versions of "Blobber" and using their correct credentials.
For any other content the endpoint will respond with 403 and 401 if no or wrong credentials were submitted.
Credentials can be a BEARER token or a cookie

Describe alternatives you've considered

Basic Authentication is not deemed secure enough.

Additional context

The above is derived from discussions with @joewiz and others.
It depends on a fix for #67 and has implications on #25 and #65

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant