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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file shopcloud_secrethub-2.12.0.tar.gz.
File metadata
- Download URL: shopcloud_secrethub-2.12.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
386a6d42e01269b4c64e8abf8d25026c7517361c348219bbcc7edc69cb93bb8d
|
|
| MD5 |
e9b6191a4fed875efe8e6a38b16d8f67
|
|
| BLAKE2b-256 |
f160301f8514720b8c1435a12a16fdf8d09700d5e3dee133a06e30b72089efbc
|
File details
Details for the file shopcloud_secrethub-2.12.0-py3.11.egg.
File metadata
- Download URL: shopcloud_secrethub-2.12.0-py3.11.egg
- Upload date:
- Size: 15.9 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31b81d8d59c66496d438741da9bf1cf7b137a0c76949485c115ad7e52344302d
|
|
| MD5 |
769d8b54b13873ab29086ece25b05909
|
|
| BLAKE2b-256 |
7c3ac04bb42936b200cb153176b3b54a30932eb90cd5c0af6e8964926b63cb4e
|
File details
Details for the file shopcloud_secrethub-2.12.0-py3-none-any.whl.
File metadata
- Download URL: shopcloud_secrethub-2.12.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce41b308e60143634e1745f24f7a30ffefeda5a2804c4c1b03f12a9b7ea7b83e
|
|
| MD5 |
db37435700cc96a7ac3b21a1cb2ea73b
|
|
| BLAKE2b-256 |
df95e96846a60de9bf92e643a51258a1326d98075a547351d3415a9f66f5f8ed
|