devpi-auth-gitlab
An authentication plugin for use with gitlab-ci, utilising the built in registry token authentication scheme.
Installation
Simply install the module onto the same server/python as your devpi-server installation pip install devpi-auth-gitlab
You will need to specify your gitlab registry server. This url can be found in the ‘Registry’ page of your gitlab project on a line like docker login registry.gitlab.com
Add this server address to the devpi-server arguments when you run it. devpi-server --host 0.0.0.0 --port 3141 --gitlab-registry-url registry.gitlab.com
Make sure any gitlab user you want as well as the “gitlab-ci-token” user is added to your devpi index’s authentication list devpi index -c corona/prod volatile=False acl_upload="corona,gitlab-ci-token" bases="root/pypi" mirror_whitelist="*"
Usage
Usage from a Gitlab CI script is as simple as:
deploy:
script:
- pip install devpi-client
- devpi use https://devpi.localnet
- devpi login "gitlab-ci-token" --password="$CI_BUILD_TOKEN"
- devpi use "corona/prod"
- devpi upload --formats sdist,bdist_wheel
Extra
This hasn’t been tested, but really this plugin is a docker registry authenticator…. as such you should be able to authenticate against any docker registry supporting v2 api
Metadata
Release files for devpi-auth-gitlab 1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| devpi-auth-gitlab-1.7.tar.gz | 3.2 kB | Without provenance | Details for devpi-auth-gitlab-1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| devpi_auth_gitlab-1.7-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for devpi_auth_gitlab-1.7-py2.py3-none-any.whl |
Total release size: 6.6 kB
Release files / devpi-auth-gitlab-1.7.tar.gz
| Download URL | devpi-auth-gitlab-1.7.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d4b3070dec2836538c4e21707cb78bcd2104f9ff3ff1c05134f79157c5552a0b
|
|
BLAKE2b-256 checksum How to use checksums |
f442d933e2dd81e5a8d91e1a0b9003b620215c149020a2c6a0d0c05561f3962c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
|
Release files / devpi_auth_gitlab-1.7-py2.py3-none-any.whl
| Download URL | devpi_auth_gitlab-1.7-py2.py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
b2f95d04915f57493ba078258606356358bc74ca23e89aed75be9c8463cb92c8
|
|
BLAKE2b-256 checksum How to use checksums |
14fca8eec3fe58f69a37503eea8ca5f94e4e59b5113967f930166de82441d433
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
|
Security for devpi-auth-gitlab 1.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.