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
$ rm -rf build dist
$ 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.16.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbbedf93eecc66497b4c44c67ac3dd416936d95a3e1e9451e0c5d2c1166fdee1 |
|
MD5 | 61def4c0ba3bec0f66ef62af2d52d400 |
|
BLAKE2b-256 | 94980b5252aa08247d8a6115add6368acfae3581e66e38ef5ba836a8bea5b6d3 |
Close
Hashes for shopcloud_secrethub-2.16.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 562b187db9d87484fc5519dfe07d9b43daf857afbb35870a10b0bc42f6247cb7 |
|
MD5 | 8ec6dc11dee47e13a6d95355ff5ffa0c |
|
BLAKE2b-256 | 1444eca71421a5d8fa0ad8b7bdbfbb7068065229bce551ce93afa855195603af |