Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shopcloud_secrethub-2.17.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

shopcloud_secrethub-2.17.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file shopcloud_secrethub-2.17.0.tar.gz.

File metadata

  • Download URL: shopcloud_secrethub-2.17.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for shopcloud_secrethub-2.17.0.tar.gz
Algorithm Hash digest
SHA256 ebcc5270fd110dcdf5a9ef2a476a65b4b4bcd06786ea0345e8b99d39147e10e9
MD5 0fa457b38fc312ebc40a4a23b4db5116
BLAKE2b-256 42f587b232e435e0884fe1095cd88e89c4a995852dc9a061ada2e7ee759c345a

See more details on using hashes here.

File details

Details for the file shopcloud_secrethub-2.17.0-py3-none-any.whl.

File metadata

File hashes

Hashes for shopcloud_secrethub-2.17.0-py3-none-any.whl
Algorithm Hash digest
SHA256 981dec0b4cde6f204f75233783918fbf1490d422f46fd6e60c695d1064e03c95
MD5 3a5eb093909730344bef817581d5519f
BLAKE2b-256 a8220c19a3252c88ac5362120a1b98fbdb16a3018ea430fb4fbd75ee8d015a95

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page