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)
# 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
Release history Release notifications | RSS feed
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.0.tar.gz
(15.5 kB
view hashes)
Built Distribution
Close
Hashes for bundlewrap-teamvault-2.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42fb1addc4a36100fe39b5378107e53d6bb2e3677c6e787d5a753bb947f1f874 |
|
MD5 | 5887892030c387a73220d8d5785145e8 |
|
BLAKE2b-256 | b13cc4fece1b506e6a2232038b5b1faa408ffab49edae602e79bb264ed253956 |
Close
Hashes for bundlewrap_teamvault-2.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21744b9172d491fd6169b498de07c15ca8bc6a875f8085ce343e6117d6f8dfb6 |
|
MD5 | 19c92b7ed2819d943e55ca0263d32fa2 |
|
BLAKE2b-256 | 6b4a18ad5b1c109c7f1cc70e27bfec6ce8c3e0a6de08a12e3ffecf60cb2e6e96 |