Skip to main content

A secrets plumbing plugin for the Pants build system

Project description

Secrets backend for Pants

PyPI

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

pants-backend-secrets-0.5.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pants_backend_secrets-0.5.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file pants-backend-secrets-0.5.0.tar.gz.

File metadata

  • Download URL: pants-backend-secrets-0.5.0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for pants-backend-secrets-0.5.0.tar.gz
Algorithm Hash digest
SHA256 e6e254c066c760f1ab8a859b961c8ea2eba39925c04680fb9808cb2598a59969
MD5 142e4e35c829634d62b8168deffb92ac
BLAKE2b-256 5b680e8ccc78145c462e85f2d768d967eb0ac0b1099bcff9a8d648fb19bd5b82

See more details on using hashes here.

File details

Details for the file pants_backend_secrets-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pants_backend_secrets-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b58614f67ebc8dfcd65f805f732c0230f1461dde7a153ea8a2a7685e0d5d4a99
MD5 edf775ec96d54a50b0effbc8528b9b51
BLAKE2b-256 35dbc7f2298cfb0df40c6dde1bf99490f499909919ebc2e2483fc7588367d5a5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page