Skip to main content

Bitwarden secret adapter for Fujin

Project description

Fujin Secrets - Bitwarden

Bitwarden secret adapter for Fujin deployment tool.

Installation

pip install fujin-secrets-bitwarden

Or with uv:

uv pip install fujin-secrets-bitwarden

Prerequisites

Download and install the Bitwarden CLI and log in to your account.

You should be able to run bw get password <name_of_secret> and get the value for the secret. This is the command that will be executed when pulling your secrets.

Configuration

Add the following to your fujin.toml file:

[secrets]
adapter = "bitwarden"
password_env = "BW_PASSWORD"

To unlock the Bitwarden vault, the password is required. Set the BW_PASSWORD environment variable in your shell. When Fujin signs in, it will always sync the vault first.

Alternatively, you can set the BW_SESSION environment variable. If BW_SESSION is present, Fujin will use it directly without signing in or syncing the vault. In this case, the password_env configuration is not required.

Usage

In your environment file (.env or configured via envfile in fujin.toml), prefix secret values with $:

DEBUG=False
AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY

The $ sign indicates to Fujin that it is a secret that should be resolved using the configured adapter.

How it Works

The adapter:

  1. Authenticates with Bitwarden using BW_SESSION or unlocks the vault with the configured password
  2. Syncs the vault (when unlocking)
  3. Resolves all secrets concurrently using bw get password <name> --raw
  4. Returns the resolved environment variables

Related

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

fujin_secrets_bitwarden-0.23.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

fujin_secrets_bitwarden-0.23.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file fujin_secrets_bitwarden-0.23.0.tar.gz.

File metadata

  • Download URL: fujin_secrets_bitwarden-0.23.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fujin_secrets_bitwarden-0.23.0.tar.gz
Algorithm Hash digest
SHA256 c78073d5c2a86417a0309b75a87255b9ac37262eb4780291aacca624c68f86d7
MD5 b6e50db0f4c9a27d8cdea477fbf55103
BLAKE2b-256 c3b2d2631abf02c60e21faf7ee3d5f8d983c3d440a88be05afcf832f8b345db7

See more details on using hashes here.

Provenance

The following attestation bundles were made for fujin_secrets_bitwarden-0.23.0.tar.gz:

Publisher: publish.yml on Tobi-De/fujin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fujin_secrets_bitwarden-0.23.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fujin_secrets_bitwarden-0.23.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a3f3954c6c0128d92742bb6e01c6b56d50baabfc370df8436a8fe19ee6608d7
MD5 18794fa92ab4a06cf84bf389e0ddc4fe
BLAKE2b-256 fb9e7a4b353cb1d46948ec7aa2e03f50f7f457e3a02c9da2b605abee62d1fa34

See more details on using hashes here.

Provenance

The following attestation bundles were made for fujin_secrets_bitwarden-0.23.0-py3-none-any.whl:

Publisher: publish.yml on Tobi-De/fujin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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