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")
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


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.4.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shopcloud_secrethub-2.4.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shopcloud_secrethub-2.4.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for shopcloud_secrethub-2.4.0.tar.gz
Algorithm Hash digest
SHA256 b7cec25c6055c8354d20b0cf90a7763b505aa3a08c94f04ae1162c87a8f5cf6b
MD5 afe0fee1113a2438b9dfe34c3c35ccee
BLAKE2b-256 614fa9726cafc7c776824cf543d8afecd9ddcc994ef9da004584750f2e08eb40

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shopcloud_secrethub-2.4.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for shopcloud_secrethub-2.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b22027cbc92707b2a806d8207115e35c76f597e71a56dd1298e14385d0d76a7
MD5 96eb8694ddcac41e23ad590d6f448959
BLAKE2b-256 657ec2eb6b8bc811aa06cf86b0ed47d2efa4ce980b9ffdf38fd4d1be300fca20

See more details on using hashes here.

Supported by

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