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")
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 Distributions
Close
Hashes for shopcloud_secrethub-2.6.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6330380deb0d8dc02ab72afc6a6c527ceac9ad18b3489ab94eda396350f46c4e |
|
MD5 | c30d5866d93856592dc67e8a16720a55 |
|
BLAKE2b-256 | 98124fb199e00b0afd34674a6a10ab8a8f41a51ea78e37482d349c85f9fdeaaa |
Close
Hashes for shopcloud_secrethub-2.6.2-py3.9.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa2d2e2715fd7b84bd5254d9e81f5996506aa33e3c8571ae5a326466917b6355 |
|
MD5 | 95546c298f573f39938125f70f175603 |
|
BLAKE2b-256 | 98f48391a7a7f5a8a3def45206a633cc9915d14f5acb7c80e78a60df4d8859a5 |
Close
Hashes for shopcloud_secrethub-2.6.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4671bd2fa131faf04f7b3ce3679351e61aa1f7af1827fe309e80a690df5d9881 |
|
MD5 | 9a63aebb58032128619663bfb0a4196c |
|
BLAKE2b-256 | b1b1e4822f8a5deb4a0d539f57c1fd35c64e2f3d25f3217c21efca297d872c63 |