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.18.0.tar.gz (5.9 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.18.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for shopcloud_secrethub-2.18.0.tar.gz
Algorithm Hash digest
SHA256 2d84c2e4cb4b0e49aa6ec8f7172f136a4056c105111f680ef7b3410b2224f1dd
MD5 0496a8b80b23a10bfca916b9298e3bee
BLAKE2b-256 01596439ac84132a649fe58c367957270ff427616b4a2826acd5fd014960b788

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for shopcloud_secrethub-2.18.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9f5233f966bf155b3f0e2ce2af3a66363e09d894ca45734fe879996c93ebeb27
MD5 e8ae76760f0cafb8775f00b7d06b076c
BLAKE2b-256 332fb199c2963a5937988dc5c1dfc866bba63ae3ec81c7c780047db9eb594262

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