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.9.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c89c77357eea143a0185f68886092afc82deeabf6fc32c1fbaf3322e8912e1ff |
|
MD5 | d5409392d92822045ea85f5b2709609f |
|
BLAKE2b-256 | 01c6c4450969061f175adc098a6eebe78f147e88fa52f407ebcc7be313d99b66 |
Close
Hashes for shopcloud_secrethub-2.9.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87e2e45425b2a4d12bdc180e9dddd07a1b37e4ef905610db906f5d36fe7295a4 |
|
MD5 | 5c40c7da6972ac577636307e62403cf5 |
|
BLAKE2b-256 | a64d9cd2b0b0b8b7f26368b673d5bcc452625b5b9ab316224295366d3fe6b725 |