Secrets backend for Pants
This release targets Pants 2.30.0. Install it with
pants-backend-secrets==0.6.1 in [GLOBAL].plugins in pants.toml.
Warning This plugin is in development. No stability is guaranteed! Contributions welcome.
This backends implements utilities for handling secrets.
Planned and missing features
- Setting and creating secrets via Pants
Targets
env_secret
A secret to be read from the environment.
env_secret(
name="bw_session_key",
key="BW_SESSION",
)
| Argument | Meaning | Default value |
|---|---|---|
name |
The target name | Same as any other target, which is the directory name |
key |
The environment variable to read. | Required |
decsription |
A description of the target | |
tags |
List of tags | [] |
Goals
decrypt
Decrypts and prints a secret.
BW_SESSION="..." pants decrypt //examples/bitwarden:pypi_token
22:29:42.17 [INFO] Completed: Decrypting examples/bitwarden:pypi_token
Secret examples/bitwarden:pypi_token from BitWarden: pypi-...
Metadata
Release files for pants-backend-secrets 0.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pants_backend_secrets-0.6.1.tar.gz | 8.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pants_backend_secrets-0.6.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 20.5 kB
Release files / pants_backend_secrets-0.6.1.tar.gz
| Download URL | pants_backend_secrets-0.6.1.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ffd1865cb78cbf40b4572ff7c166e7db2f96f9dc558f287e5620102ca7719f4
|
|
BLAKE2b-256 checksum How to use checksums |
a37b370b54eab65b51a5a4f9d244069d7bf67936311520e385739e29d61800ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.23
|
Release files / pants_backend_secrets-0.6.1-py2.py3-none-any.whl
| Download URL | pants_backend_secrets-0.6.1-py2.py3-none-any.whl |
|---|---|
| Size | 11.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
dbccc0e332395522a352df8c918031445e75c8ec5fd81f785460f53b867cd7aa
|
|
BLAKE2b-256 checksum How to use checksums |
8f2214bd62bba0b6217a922e21f1a977d9a40c5c0bacfe2ac276a9c30fc6232d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.23
|