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.15.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac07706c76347adedc65a3cd704a73dc0b60ac7cef73691aa943dfe6e1e8737d |
|
MD5 | 1c170eb4d1482d33628c74cc6afc4eb4 |
|
BLAKE2b-256 | a668c16039a74d6282dfd2a624ccccd4fd8cd073280aa296b75536c30755f10c |
Close
Hashes for shopcloud_secrethub-2.15.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76e61ee73e82f48463e37ca56f8f6bfb4b56b5f3103b8a7c172f2555cbaaeef2 |
|
MD5 | 056079e373c4fe571f4c8d3900ce5373 |
|
BLAKE2b-256 | 09de04e2da100ef8352d97b97ceb40f98b25fa4ae65f1d03681129480dedf2c4 |