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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29bd9b6003759ac3aaeb6acfc275e7c07bf4f47ff2e64665371be06777c2958a |
|
MD5 | fda7ab888da552af388a477024a04633 |
|
BLAKE2b-256 | 451e8b890db657f4b9bc0514a7f3a1c15822785ee9f53620b352efcd896f4a6d |
Close
Hashes for shopcloud_secrethub-2.8.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ea4254c7eb8bac41d4828cd668e4b5c3b9d0d3bd7074f6a5a3b69bcb400f3d6 |
|
MD5 | 8a0bb742e297379161bf7c77ddb8f270 |
|
BLAKE2b-256 | 59a98c29827ad80aecc5302b84e15fd9153ce236939282a492a534aa928d02c3 |