Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bundlewrap-pass-1.0.2.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

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

bundlewrap_pass-1.0.2-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file bundlewrap-pass-1.0.2.tar.gz.

File metadata

  • Download URL: bundlewrap-pass-1.0.2.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for bundlewrap-pass-1.0.2.tar.gz
Algorithm Hash digest
SHA256 dca9944d3390e3a4e229736428b47078c11ee66ff327582f01526db4905dce29
MD5 04f7027d0002dc8ee85332a494b67390
BLAKE2b-256 f16eaf63befadeceb01362cf4657fd3297e48a86dde9876c3f2df27f0e8b7cfd

See more details on using hashes here.

File details

Details for the file bundlewrap_pass-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: bundlewrap_pass-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for bundlewrap_pass-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3dc02c4b42b91741af9b13a1fac4ce7fef815815fadb8c3b4cd2434594da5772
MD5 8696ca002a1b4742e89b84c433cf727d
BLAKE2b-256 e4b53089b963f9f257abd9217c3559c3655dedf781dda73bb42687381288b4a1

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