CLI tool for the Shopcloud SecretHub
Project description
Shopcloud SecretHub CLI
The SecretHub CLI provides the command-line interface to interact with the SecretHub API.
install
$ pip install shopcloud_secrethub
Usage
Reading and writing secrets:
$ secrethub auth
$ secrethub read <secret-name>
$ secrethub write <secret-name> <value>
Provisioning your applications with secrets:
Provision a template file
$ secrethub inject -i app.temp.yaml -o app.yaml
# app.temp.yaml
env_variables:
ENV: {{ talk-point/test-repo/env }}
SECRET_KEY: {{ talk-point/test-repo/secret_key }}
Provision to the environment
$ eval `secrethub printenv -i app.temp.yaml`
# app.temp.yaml
env_variables:
ENV: {{ talk-point/test-repo/env }}
SECRET_KEY: {{ talk-point/test-repo/secret_key }}
in Code:
from shopcloud_secrethub import SecretHub
hub = SecretHub(user_app="test-script", api_token='<TOKEN>')
hub.read('talk-point/test-repo/secret_key')
Deploy to PyPi
$ pip3 install wheel twine
$ python3 setup.py sdist bdist_wheel
$ twine upload dist/*
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
Built Distribution
Close
Hashes for shopcloud_secrethub-2.8.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d358693c69cc7e88f05ca6ba3a07203ad12bd4c01a01a057f1a702d8eb4edea |
|
MD5 | 33a1b1d8bdbb6b5fc1d8cf9c07dce98c |
|
BLAKE2b-256 | 53ed88cedc7ef1cfb398a8f1cb91ba188982754f255780c634043fee667cceb7 |
Close
Hashes for shopcloud_secrethub-2.8.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fe794ade9b0303d8a7a3fcd86c219ee817f82325f7dd89a7e811747c0b1cf76 |
|
MD5 | 3dbb4396300ebec71fc213a2158cac70 |
|
BLAKE2b-256 | d73a2f2574b865f57eacbb6961b6989a0a095ee9322fb1b5d762ed64374da516 |