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")
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.6.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9cef593148dbc2a92a343d4423f592355538e032850679b8748b5bf8c87b01e |
|
MD5 | 546507cd872145a40bd55c6385e668f6 |
|
BLAKE2b-256 | 1e3d824842661277771bb074fb63dcd9120fdfd155ee0594538ea80a9ee60a3f |
Close
Hashes for shopcloud_secrethub-2.6.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5dcf45b2eb49dddcf7f17bb7c6797fe98fc7cd0811b809f282ca4220652752a2 |
|
MD5 | 0b04c6cf1d89cf80edb2ed253077f01b |
|
BLAKE2b-256 | 77658c471f9fdfe5e8eed3d6e4a3c2d4a6302f8e79d25b4546f44f7100e7c0d5 |