Skip to main content

No project description provided

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

bitwarden secrets (for poor ppl :3)

wrapper program to take a regular bitwarden vault and make it act like like a bitwarden secrets application by using the bitwarden cli app. the program will pull all items in a folder and then inject them into the environment using the item name and password field before running a passed command

installation

pypi

this package is publish and can be pulled from pypi using either pip install bw_secrets or pipx install bw_secrets

releases

download the wheel from the releases page and install with either pip or pipx. pipx of course is the recommended installation method

usage

this will assume that you have the bitwarden cli program installed on your machine and have logged in with it.

Config

first, run the config using bwsp config, this will prompt you to enter your vault master password. this will be saved in a read only file in the users home directory: ~/.config/bw_secrets/pass.key

this can be skipped, however, if you have a password file that you would like to use in a directory of your own. note, that this will required you to pass the path of the file with every run

running

this can be done with bwsp run <folder> <command>

example:

bwsp run 'secrets/vaultwarden' 'docker compose up -d'

the passed folder can be either the folder id, which can be found through the url in the web vault after opening the folder, or by passing the folder name

note that when giving the folder name, this will increase the execution time as the wrapper then has to search for the correct folder and verify that it is the only folder with that name

running options

  • lock will lock the vault after running. this is not done by default due to the time increase on multiple runs. simply running bw lock after you are finished will have the same effect
  • password-file can point to a custom password file
  • no-sync will skip the vault sync. this can save time if you know that the local vault already has the data you need

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

bw_secrets-0.1.4.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

bw_secrets-0.1.4-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file bw_secrets-0.1.4.tar.gz.

File metadata

  • Download URL: bw_secrets-0.1.4.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.12 Linux/6.6.87.2-microsoft-standard-WSL2

File hashes

Hashes for bw_secrets-0.1.4.tar.gz
Algorithm Hash digest
SHA256 ff6f15693b4690c95fb2a84af96ddd713b734fb1d2b31379817671e31f7e8193
MD5 425a6769c40c9becc6daa0d385dc946f
BLAKE2b-256 6403d7fc386102428d6cf59045897c48f97ba71e89fba0cb1112b9c1cabe80a3

See more details on using hashes here.

File details

Details for the file bw_secrets-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: bw_secrets-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.12 Linux/6.6.87.2-microsoft-standard-WSL2

File hashes

Hashes for bw_secrets-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4c4de9a88eabc9725a18cd6b172533b411d06158eef5d74e845b93827fc052b2
MD5 551576b5e88085dc94ce3bca9c5414e8
BLAKE2b-256 ac1279b9fe3b457bc95b8ef81d90da3874f9c9e6cc3b6c7533a8b6f7f743f1fa

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