Secrets backend for Pants
This release targets Pants 2.31.0. Install it with
pants-backend-secrets==0.7.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.7.0
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 |
|---|---|---|---|---|
| pants_backend_secrets-0.7.0.tar.gz | 9.0 kB | Without provenance | Details for pants_backend_secrets-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pants_backend_secrets-0.7.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for pants_backend_secrets-0.7.0-py2.py3-none-any.whl |
Total release size: 20.7 kB
Release files / pants_backend_secrets-0.7.0.tar.gz
| Download URL | pants_backend_secrets-0.7.0.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d85c88051e64289f65c618cad7ca31e4e5824f44dfe6217e3a145afcc4eba275
|
|
BLAKE2b-256 checksum How to use checksums |
e67633ae91030f5521863e8f428b4b0cfe1f34c37cf65341a9a75e2c297b0ed6
|
| 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.7.0-py2.py3-none-any.whl
| Download URL | pants_backend_secrets-0.7.0-py2.py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
d3377d42d5184070d952baf6f83b830f5bd44fa493be53dd751af59b33f57c63
|
|
BLAKE2b-256 checksum How to use checksums |
af3175726e80c8e252e2effd7f423520bb67ee44da62cf57dd0e33dd53c377ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.23
|
Security for pants-backend-secrets 0.7.0
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.