A secrets plumbing plugin for the Pants build system
Project description
Secrets backend for Pants
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-...
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
Built Distribution
File details
Details for the file pants-backend-secrets-0.3.0.tar.gz
.
File metadata
- Download URL: pants-backend-secrets-0.3.0.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93822d479afa7cea3866d46a06012439424c37ae580ee9fd765acee591daa0b7 |
|
MD5 | 07541a5472373438765b39ca1b30cda6 |
|
BLAKE2b-256 | a8545b9b1d28415532851b38e99738a7612053736ee8c66b6f81cb4b72508021 |
File details
Details for the file pants_backend_secrets-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: pants_backend_secrets-0.3.0-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4b762d8ff53b55eade5a7d12be8f0b0c83b2efb94525d796c4991b31e5f824b |
|
MD5 | 0b06256d75305cd11dbc70aaed457ee4 |
|
BLAKE2b-256 | e1dc0317dfb7843e3f59e86d2bc8218d18bd47891be327cc463874381aa0a8b9 |