Skip to main content

Add command line option to limit mirror index creation to specific users.

Project description

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"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

devpi-mirror-index-acl-1.0.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

devpi_mirror_index_acl-1.0.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file devpi-mirror-index-acl-1.0.0.tar.gz.

File metadata

  • Download URL: devpi-mirror-index-acl-1.0.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: devpi-server/6.10.0.dev0 (py3.8.11; linux)

File hashes

Hashes for devpi-mirror-index-acl-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2e6e6cbf27db568885540b2449d58783341f6e5961df12ee1d92d56b05b8e114
MD5 fe45d2dfa8852e46748767626fa67537
BLAKE2b-256 71920cc1b0a9c342fc7d641318d6ca8fb1aec1f5f03fb78aadcebe943dfe9809

See more details on using hashes here.

File details

Details for the file devpi_mirror_index_acl-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for devpi_mirror_index_acl-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8972677e5f8cc2cac0dba8e8e6de3f49a7477a25574647290a82403baa6d67cf
MD5 f2d8a13782e2e6453586cf47d33fb3f7
BLAKE2b-256 60c472bad753465e5d0cdb9b15618c7db2f2e4326455cfdc3f92494be313ccb7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page