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-1.0.0.tar.gz
(15.6 kB
view hashes)
Built Distribution
Close
Hashes for bundlewrap-teamvault-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8175b058fe8b996d87e2467325cbc259608f46c986fc5284c8ed549385c97c8 |
|
MD5 | 04a4e0f69f37190f16c779c294b1c034 |
|
BLAKE2b-256 | 2be22644c56ee2b7b00bdff6447b822b85693ff664ccf8dcd6ae432bce651afe |
Close
Hashes for bundlewrap_teamvault-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 579273dbc140c04c55b9574b3b30da009218687e7ad0019e9fd6893532f5869a |
|
MD5 | 66d3fee95cbaea6df925cfe1ffb20a3b |
|
BLAKE2b-256 | c0d425da7517224c70a8b174d37739c2fa1334cb81deb5e68d89ac9e668ea563 |