Skip to main content

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

Metadata

Release files for bundlewrap-pass 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bundlewrap-pass 1.0.2
File Size Uploaded
bundlewrap-pass-1.0.2.tar.gz 15.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bundlewrap-pass 1.0.2
File Interpreter ABI Platform
bundlewrap_pass-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 30.7 kB

Release files / bundlewrap-pass-1.0.2.tar.gz

Download URL bundlewrap-pass-1.0.2.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
dca9944d3390e3a4e229736428b47078c11ee66ff327582f01526db4905dce29
BLAKE2b-256 checksum
How to use checksums
f16eaf63befadeceb01362cf4657fd3297e48a86dde9876c3f2df27f0e8b7cfd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

Release files / bundlewrap_pass-1.0.2-py3-none-any.whl

Download URL bundlewrap_pass-1.0.2-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3dc02c4b42b91741af9b13a1fac4ce7fef815815fadb8c3b4cd2434594da5772
BLAKE2b-256 checksum
How to use checksums
e4b53089b963f9f257abd9217c3559c3655dedf781dda73bb42687381288b4a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page