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.4.0.tar.gz
.
File metadata
- Download URL: pants-backend-secrets-0.4.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.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d98e8eecfa6bdb82d49c66366ed5b6d73288afd68910823d52fb8e7fa5220a6 |
|
MD5 | 3a5b4fb7d423afa88f9503af0ae54611 |
|
BLAKE2b-256 | ff91dee5a0a23e5e9a869b8756f14849539f01037809fda66fb901389d3b32e2 |
File details
Details for the file pants_backend_secrets-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: pants_backend_secrets-0.4.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.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 261ef8b601f1d57e44d229cdbcd8550e2217be4cbc967f776843c177b1bf7dab |
|
MD5 | afa3d2ac138192c20053b0315c4ce1b5 |
|
BLAKE2b-256 | 33289237cedafcdbb2768f6c8cc60b534338279d1929b383490e80c41890cb7d |