You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Franzi f04b211516
release 1.0.2
2 years ago
.gitignore add dist/ to .gitignore 2 years ago
LICENSE add LICENSE 2 years ago add README 2 years ago do not try to parse lines which do not conform to the browserpass format 2 years ago release 1.0.2 2 years ago

Use secrets from pass in your BundleWrap repo.


pip install bundlewrap-pass


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.


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:

custom_attribute: foo
another_attr: bar

You can then retrieve those attributes using the attr method of bundlewrap-pass.


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