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.11.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5adb378bd6ca4aef066042bc7ce61536dd5307fe68bfc7ae7380e6f5c0dcbeeb |
|
MD5 | 7b2ddbc756c5c88ac1864c09bebcf227 |
|
BLAKE2b-256 | 4c093ca0d953d36a14e6e4c85f12bf1f54ff1be5fb34c3c7db4475bcb5cd2dbe |
Close
Hashes for shopcloud_secrethub-2.11.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42409f22d87314934cc26c4de0d643d58e2475769b9fc337447cabb13e2bf2c4 |
|
MD5 | ab02244958e128c73d9266ee48d9ecef |
|
BLAKE2b-256 | d9a11b8fcfece3d4ecdf1086532da796ccc5a7fe335532422bc0214b5e1d326f |