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.10.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e44283d5055cadd221e046a513c1479b109d1cf475355cf6907c224434ab912d |
|
MD5 | bc97b10e2880dc8abe4e46080a848786 |
|
BLAKE2b-256 | 9558e1f20c1b7c634f7d1345561a30eb30b856ed8484b5d7af36b3b5baa4b353 |
Close
Hashes for shopcloud_secrethub-2.10.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c24a10f0aa8a4dadfc94374f1eeded863fdecde52e2eb1c19dc742356de8c934 |
|
MD5 | dd108c01f62da090e9d99e50b439a356 |
|
BLAKE2b-256 | 080a29ee23e8e23695bfbd7b530fae9ae0071ae134ea9d799b3298cd2b7bc084 |