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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56e30d33342fb511f3e0cc295cccbdae8e04b3581ef7c0a4ad588997d7f5f6b8 |
|
MD5 | 3945acb7f5d32f9213b559e39fdc73de |
|
BLAKE2b-256 | 58c1f14697ae9c49c185440e6f4a56a7c5a04cdad32bae812925bf1dfc8d864d |
Close
Hashes for shopcloud_secrethub-2.8.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d126ace1057c77130f5cd99ace7635950e440bf864364cc2107eef3450cc99a6 |
|
MD5 | 58fdc45acacdab7c1c81101bbd645b01 |
|
BLAKE2b-256 | 84ffa6119e7a5330a68f9f3c0e1ca9e2daf4620a939093b22fca6eb2dd3c955b |