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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72638561232ac4eb348ec8b0af4985dbb21e0ea78f73c81c344f7b7fb83ff177 |
|
MD5 | b4132fb3ab1da9549d8e4b9946d8f2e8 |
|
BLAKE2b-256 | 8881e6b9b47f3fd4631d6b2482ec1cda10b6b42ba4a654dd0690e6aea5d3669a |
Close
Hashes for shopcloud_secrethub-2.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7de511ec3237d320ed65e0d2a2acbc0cfa360f97ea0ebd0f0daaa61dadddc5e |
|
MD5 | 9e1905cba04732ca4ae6e9cb44766f69 |
|
BLAKE2b-256 | aefc895a1cdabe2c6097f2ebfaba4c4b7fc98979bdcdedf9eb56270a223003ad |