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",
)
ArgumentMeaningDefault value
nameThe target nameSame as any other target, which is the directory name
idItem id used by this target as seen in the address barRequired
item_nameThe name in the vault. If ambiguous this will fail. Prefer IDs.
session_secretThe secret to use for the BW_SESSION variable.env["BW_SESSION"]
decsriptionA description of the target
tagsList of tags[]

bw_password

The password of an item in your vault.

bw_password(
    name="pypi_password",
    item=[":pypi"],
)
ArgumentMeaningDefault value
nameThe target nameSame as any other target, which is the directory name
itemThe item containing the password.Required
decsriptionA description of the target
tagsList 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"],
)
ArgumentMeaningDefault value
nameThe target nameSame as any other target, which is the directory name
itemThe item containing the password.Required
field_nameThe item containing the password.Required
decsriptionA description of the target
tagsList of tags[]