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.1.tar.gz
(15.6 kB
view hashes)
Built Distribution
Close
Hashes for bundlewrap-teamvault-2.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e567a9d7554a38322bf547eb15bce7871f5edc261ac9079abd525a96745fb005 |
|
MD5 | ede547556e7ed9b0c804db6065aa03e1 |
|
BLAKE2b-256 | 2fc957d73b877561a1e119fdb31a17953f5ad24543704538da7e9978d9313970 |
Close
Hashes for bundlewrap_teamvault-2.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc0576c52de087eb46a701c4204c7692d31822e6c9bc6a38e7a2a96b15d16077 |
|
MD5 | 4b71015537848beeac60b127b7903578 |
|
BLAKE2b-256 | 212b1ad46cf58ead27171c032cfd1bc4389c1e053893abc6f46b119987118673 |