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 Distribution
Close
Hashes for shopcloud_secrethub-2.7.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 242be8fc967cefd70d63389e049725ae58ad58dc915f3fec1239c0089819d2f4 |
|
MD5 | a9b8d028c0f508fd197796bcdda7617f |
|
BLAKE2b-256 | 557954c46b566390367574efc78db5fee0565f472cc2ac7a20b7d5762c3f3759 |
Close
Hashes for shopcloud_secrethub-2.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da55fc2774a7264b158ede3d195008c2d561b669285feca4a7ddcd5d97fc3518 |
|
MD5 | 702185aa887de8150609f4918ebd643d |
|
BLAKE2b-256 | 268680044df5a91289c9e852dd1481fadd3c0370b8e2aee4b8cde27489258227 |