Skip to main content

A Bitwarden plugin for the Pants build system

Project description

BitWarden backend for Pants

PyPI

Warning This plugin is in development. No stability is guaranteed! Contributions welcome.

This backends implements targets for reading BitWarden secrets.

  • bw - the BitWarden CLI client

Planned and missing features

  • Setting and creating secrets via Pants

Targets

bw_item

Matches one entry in your vault.

bw_item(
    name="pypi",
    id="386c6037-cbdd-4aa3-ba80-9ed6661f751b",
    session_secret=":bw_session_key",
)
Argument Meaning Default value
name The target name Same as any other target, which is the directory name
id Item id used by this target as seen in the address bar Required
item_name The name in the vault. If ambiguous this will fail. Prefer IDs.
session_secret The secret to use for the BW_SESSION variable. env["BW_SESSION"]
decsription A description of the target
tags List of tags []

bw_password

The password of an item in your vault.

bw_password(
    name="pypi_password",
    item=[":pypi"],
)
Argument Meaning Default value
name The target name Same as any other target, which is the directory name
item The item containing the password. Required
decsription A description of the target
tags List of tags []

bw_field

A field from an item in your vault. These are the "Custom Fields" at the bottom of an item, not to be confused with attachments.

bw_field(
    name="pypi_token",
	field_name="api_token"
    item=[":pypi"],
)
Argument Meaning Default value
name The target name Same as any other target, which is the directory name
item The item containing the password. Required
field_name The item containing the password. Required
decsription A description of the target
tags List of tags []

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-bitwarden-0.5.0.tar.gz (5.5 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_bitwarden-0.5.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pants-backend-bitwarden-0.5.0.tar.gz
Algorithm Hash digest
SHA256 7640bbf345b280a9fd677b5dde6d5a8d5e873aba97dcaf5932b897ec74425964
MD5 b2262d29ca31c98aaaf3b282305c5d46
BLAKE2b-256 3ae3582bd8f0ce01b4d7ebbb618d57cca2e7e0a463e556b61b94fd87d3b5d799

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pants_backend_bitwarden-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1940b950b92aad7d4e8208c67c439d1ac28b132a601eee01536555fdcf866437
MD5 1d2abaf239daa6a4f2b1e8a54864f438
BLAKE2b-256 70cdbde004400117f6c9fed3f6eca041e6603d44166b9a07a326a3759db2dcd6

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