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

Uploaded Source

Built Distributions

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

shopcloud_secrethub-2.6.2-py3.9.egg (9.7 kB view details)

Uploaded Egg

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: shopcloud_secrethub-2.6.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1

File hashes

Hashes for shopcloud_secrethub-2.6.2.tar.gz
Algorithm Hash digest
SHA256 6330380deb0d8dc02ab72afc6a6c527ceac9ad18b3489ab94eda396350f46c4e
MD5 c30d5866d93856592dc67e8a16720a55
BLAKE2b-256 98124fb199e00b0afd34674a6a10ab8a8f41a51ea78e37482d349c85f9fdeaaa

See more details on using hashes here.

File details

Details for the file shopcloud_secrethub-2.6.2-py3.9.egg.

File metadata

  • Download URL: shopcloud_secrethub-2.6.2-py3.9.egg
  • Upload date:
  • Size: 9.7 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1

File hashes

Hashes for shopcloud_secrethub-2.6.2-py3.9.egg
Algorithm Hash digest
SHA256 aa2d2e2715fd7b84bd5254d9e81f5996506aa33e3c8571ae5a326466917b6355
MD5 95546c298f573f39938125f70f175603
BLAKE2b-256 98f48391a7a7f5a8a3def45206a633cc9915d14f5acb7c80e78a60df4d8859a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shopcloud_secrethub-2.6.2-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1

File hashes

Hashes for shopcloud_secrethub-2.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4671bd2fa131faf04f7b3ce3679351e61aa1f7af1827fe309e80a690df5d9881
MD5 9a63aebb58032128619663bfb0a4196c
BLAKE2b-256 b1b1e4822f8a5deb4a0d539f57c1fd35c64e2f3d25f3217c21efca297d872c63

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