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"
[secrets.options]
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 options.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:
- Authenticates with Bitwarden using
BW_SESSIONor unlocks the vault with the configured password - Syncs the vault (when unlocking)
- Resolves all secrets concurrently using
bw get password <name> --raw - Returns the resolved environment variables
Related
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fujin_secrets_bitwarden-0.25.2.tar.gz.
File metadata
- Download URL: fujin_secrets_bitwarden-0.25.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
926ca76075101e65c3d76450bcbcb49d4e8dd6c260733ce73339d5da043d772e
|
|
| MD5 |
5683a65c4298d5dd95889ec39a924923
|
|
| BLAKE2b-256 |
d47efde0da55e46b01128638d699b6559753e216584e0e7d26ad1cad9dae2ea5
|
Provenance
The following attestation bundles were made for fujin_secrets_bitwarden-0.25.2.tar.gz:
Publisher:
publish.yml on Tobi-De/fujin
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fujin_secrets_bitwarden-0.25.2.tar.gz -
Subject digest:
926ca76075101e65c3d76450bcbcb49d4e8dd6c260733ce73339d5da043d772e - Sigstore transparency entry: 1203481977
- Sigstore integration time:
-
Permalink:
Tobi-De/fujin@0e22f2fb4a43cd6997fe9babfaa66b9c0744ba69 -
Branch / Tag:
refs/tags/v0.25.2 - Owner: https://github.com/Tobi-De
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0e22f2fb4a43cd6997fe9babfaa66b9c0744ba69 -
Trigger Event:
push
-
Statement type:
File details
Details for the file fujin_secrets_bitwarden-0.25.2-py3-none-any.whl.
File metadata
- Download URL: fujin_secrets_bitwarden-0.25.2-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
548369844f186048986ae5b1ab9253480f65f638471db55270d1667de11b62c7
|
|
| MD5 |
3586ff26fddce9ecb543cc956d448028
|
|
| BLAKE2b-256 |
53dc1360f449a8f913f8516ca11d96fee25ed123c68760457a986466cb094a9f
|
Provenance
The following attestation bundles were made for fujin_secrets_bitwarden-0.25.2-py3-none-any.whl:
Publisher:
publish.yml on Tobi-De/fujin
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fujin_secrets_bitwarden-0.25.2-py3-none-any.whl -
Subject digest:
548369844f186048986ae5b1ab9253480f65f638471db55270d1667de11b62c7 - Sigstore transparency entry: 1203481982
- Sigstore integration time:
-
Permalink:
Tobi-De/fujin@0e22f2fb4a43cd6997fe9babfaa66b9c0744ba69 -
Branch / Tag:
refs/tags/v0.25.2 - Owner: https://github.com/Tobi-De
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0e22f2fb4a43cd6997fe9babfaa66b9c0744ba69 -
Trigger Event:
push
-
Statement type: