Thorgate helper for ansible vault password
Project description
Thorgate Bitwarden password helper
Use with (for example) ansible vault to allow automatically getting password from bitwarden instead of copying it over.
Usage with ansible
Example ansible.cfg (considering you added tg-bw-helper with poetry):
[defaults]
vault_password_file=./ask-vault-pass.sh
ask-vault-pass.sh (needs to be executable):
#!/bin/sh
poetry run python -m tg_bw_helper --vault-item "Thorgate Ansible vault" --vault-entry-field "Main ansible"
Parameters
--bw-executable
optional, should point to bw executable, defaults to /usr/bin/bw, can also be set withTG_BW_AP_EXECUTABLE_PATH
env variable--fallback-prompt
optional, prompt to display if bw fails, defaults to "Vault password: ", can also be set withTG_BW_AP_FALLBACK_PROMPT
env variable--vault-item
vault item ID or name, should be specific since tool will fail if multiple items are found--vault-item-field
, optional, field to use on the item. If not specified, password is used
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.1 - 2021-08-14
Added
- CI packaging for pypi
1.0.0 - 2021-08-14
Added
- Password helper
- Tests
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
tg-bw-helper-1.0.1.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for tg_bw_helper-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8e1a0aedb294e6203e3754cef23e10f44e9219b24272afc70b347eadc216ac5 |
|
MD5 | 75e4998d9ebe9830edecf0f0eb27f3ea |
|
BLAKE2b-256 | 9d25bd191f8811aa263525f897f4d8eba923fe7da6d3f2bb3237e06bd1c4ae9b |