stevearc / pypicloud

S3-backed pypi server implementation
MIT License
507 stars 141 forks source link

Possible values for `pypi.default_write` and `pypi.default_read` #294

Closed aperuru closed 2 years ago

aperuru commented 2 years ago

@stevearc I'm aware of these two options only everyone and authenticate. I wonder if there is any way to block the write or read access ? So the users should not be able to write/read to/from pypicloud

aperuru commented 2 years ago

so its a group name? How to allow only admins to perform read/write?

stevearc commented 2 years ago

As mentioned in the docs, pypi.default_read and pypi.default_write are both a list of groups. You can use the admin group to restrict it to only admin users:

pypi.default_read = admin
pypi.default_write = admin
aperuru commented 2 years ago

Thank you for your response.