Secrets backend for Pants
This release targets Pants 2.30.0. Install it with
pants-backend-secrets==0.6.0 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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pants_backend_secrets-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / pants_backend_secrets-0.6.0-py3-none-any.whl
| Download URL | pants_backend_secrets-0.6.0-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6155be187f40c939fecd7f29c831bac31d94fc0e840ebe1ba4107a7ab8a15751
|
|
BLAKE2b-256 checksum How to use checksums |
c49b731a3cdd6bfadf81b937be62b9e910ea97b526e52d8aaaf6195a0ef09311
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.23
|