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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca8d8c27d82754353e4a9f8d2de1f2cf245bb90dc7519fd2ffeeb155b7d7550d |
|
MD5 | a37ad51f67170c574e30e3b8e7d8a9bc |
|
BLAKE2b-256 | 6f785418e5015b2951cb249949cf88fc30609582db22605a7eb7f8545b0cbce5 |
Close
Hashes for shopcloud_secrethub-2.8.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59d03c7c0d63f3501e3bb467ad397ef37f8c27a7f8826d66c8d4fc2f3a82962c |
|
MD5 | af4c716ce9ad4b98b1983660623163f1 |
|
BLAKE2b-256 | 78a477e23889f969ecc3bc4a3372e25d407e0c567dc36997030743365e0560ca |