Get passwordstore entries via bundlewrap
Project description
Use secrets from pass in your BundleWrap repo.
Installation
pip install bundlewrap-pass
Setup
There's no setup needed. Please note bundlewrap-pass will override your
PASSWORD_STORE_DIR
to the content of BW_PASS_DIR
, which in turn will
default to ~/.password-store
. Keep this in mind if you want to use
a custom path to your passwordstore repo.
usage
bundlewrap-pass will use the first line of pass
output to get its
password
attribute. You can also retrieve any other saved attributes,
as long as your pass entries conform to the format which browserpass uses:
my_super_secure_password
custom_attribute: foo
another_attr: bar
You can then retrieve those attributes using the attr
method of
bundlewrap-pass.
Example nodes.py
:
import bwpass
nodes = {
'somenode': {
'metadata': {
'my_secret': bwpass.password('my_identifier'),
'my_custom_attr': bwpass.attr('my_identifier', 'custom_attribute'),
},
},
}
Note: This will insert a proxy object into your metadata, the actual secret is not retrieved until you convert it to a string (e.g. by inserting it in a template or calling str() explicitly).
© 2021 Franziska Kunsmann
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
Hashes for bundlewrap_pass-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a286741bb44f6286484818240a1aca9fc8af19c87b3a249957bc962b0e1f538c |
|
MD5 | 35e0ea71c8df853196b05fa5c43e3738 |
|
BLAKE2b-256 | c31d804f2ce794036a48835c3f5fefa898bbfabc2e56cf7a1e84b77735a5b318 |