Metadata-Version: 2.1
Name: bundlewrap-pass
Version: 1.0.1
Summary: Get passwordstore entries via bundlewrap
Home-page: UNKNOWN
Author: Franziska Kunsmann
Author-email: hi@kunsmann.eu
License: GPLv3
Keywords: configuration,config,management
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Natural Language :: English
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: System :: Installation/Setup
Classifier: Topic :: System :: Systems Administration
Description-Content-Type: text/markdown
License-File: LICENSE

Use secrets from [pass](https://www.passwordstore.org/) in your [BundleWrap](http://bundlewrap.org/) 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`:

```python
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](mailto:pypi@kunsmann.eu)


