Skip to main content

Access TeamVault secrets from BundleWrap

Project description

Pull secrets from [TeamVault](https://github.com/trehn/teamvault) into your [BundleWrap](http://bundlewrap.org) repo.

# Installation

pip install bundlewrap-teamvault

# Setup

Add this to your `~/.bw_teamvault_secrets.cfg`:

```
[foocorp]
url = https://teamvault.example.com
username = jdoe
password = potato
```

# Usage

Use in your `nodes.py` like this (replace ABCDEF with the hash id from the TeamVault URL of the secret you want):

```
import bwtv as teamvault

nodes = {
"node1": {
'metadata': {
'secret': teamvault.password("ABCDEF", site="foocorp"),
},
},
}
```

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).

---

© 2016 [Torsten Rehn](mailto:torsten@rehn.email)

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-teamvault-2.0.1.tar.gz (15.6 kB view hashes)

Uploaded Source

Built Distribution

bundlewrap_teamvault-2.0.1-py2.py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page