devpi-mirror-index-acl: limit who can add mirror indexes
This plugin adds the --acl-mirror-index-create command line option to devpi-server. The option takes a list of user and group names which are allowed to create mirror indexes.
Installation
devpi-mirror-index-acl needs to be installed alongside devpi-server to enable the command line option.
You can install it with:
pip install devpi-mirror-index-acl
There is no configuration needed as devpi-server will automatically discover the plugin through calling hooks using the setuptools entry points mechanism.
Motivation
Mirror indexes can take up a lot of resources in both storage and CPU. Especially mirroring PyPI and other indexes with a lot of packages and releases. This package allows limiting who can add such mirrors to prevent accidental or malicious resource exhaustion.
Usage
When using the --acl-mirror-index-create command line option, you provide a comma separated list of user or group names.
The same applies when using the DEVPISERVER_ACL_MIRROR_INDEX_CREATE environment variable.
When using a configuration yaml file you can use an explicit list:
devpi-server:
acl-mirror-index-create:
- "root"
Metadata
Release files for devpi-mirror-index-acl 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| devpi-mirror-index-acl-1.0.0.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| devpi_mirror_index_acl-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.4 kB
Release files / devpi-mirror-index-acl-1.0.0.tar.gz
| Download URL | devpi-mirror-index-acl-1.0.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e6e6cbf27db568885540b2449d58783341f6e5961df12ee1d92d56b05b8e114
|
|
BLAKE2b-256 checksum How to use checksums |
71920cc1b0a9c342fc7d641318d6ca8fb1aec1f5f03fb78aadcebe943dfe9809
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
devpi-server/6.10.0.dev0 (py3.8.11; linux)
|
Release files / devpi_mirror_index_acl-1.0.0-py3-none-any.whl
| Download URL | devpi_mirror_index_acl-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8972677e5f8cc2cac0dba8e8e6de3f49a7477a25574647290a82403baa6d67cf
|
|
BLAKE2b-256 checksum How to use checksums |
60c472bad753465e5d0cdb9b15618c7db2f2e4326455cfdc3f92494be313ccb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
devpi-server/6.10.0.dev0 (py3.8.11; linux)
|