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 Distributions
Close
Hashes for shopcloud_secrethub-2.11.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f9e97c650c1373573b8383d9a19f996f44c994863c199be83436b871d15d71f |
|
MD5 | d51ce83948b7ca7c2fa7b66352347703 |
|
BLAKE2b-256 | b92c18825979d080baf7de7edc1724de64a4eb3ac83855b38fc2980936dea1ec |
Close
Hashes for shopcloud_secrethub-2.11.2-py3.11.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdc6f73b9925721fe03d0505d2c556d97cc4fa3337ccc591e1573dd6cee7b0c6 |
|
MD5 | 17858b7954f790e2fc53a4e9026ecc6d |
|
BLAKE2b-256 | 71576719c9bf83d478fb21475d3bc46c5532d8673194d0793e93f93dd6afe049 |
Close
Hashes for shopcloud_secrethub-2.11.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e981a991c82f12ddc18756fe875c891b32f248cf3cd194361275e8cc1836811 |
|
MD5 | 247e2c096c66189b02daade1825665b8 |
|
BLAKE2b-256 | 5a6530d76b635acd5e84a176cde2cad17e73e2362d3729dc5c5e56cdef05a703 |