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()
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.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8b16979f2f1ff7696f30ad4cb274d44d651aa7686364cb6519e21aceca461ce |
|
MD5 | 07824ad7afb3e76726ff3ef3cf061975 |
|
BLAKE2b-256 | 2aa68a9677476c812f1b5a60416dd28393f0c03df7d3185dd478c294c57e6289 |
Close
Hashes for shopcloud_secrethub-2.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0d0b5fcda8a90103fa6e1621d0252941e48067021413e4772873090cbec43d2 |
|
MD5 | 1566538f76528ab6385335e39bc89967 |
|
BLAKE2b-256 | 636716ab71f9277721cb140a4ac93220b2c56a3712072bf751f6b80383a25964 |