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

Or with uv:

uv add 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')

Contributing

Install uv if you don't have it:

curl -LsSf https://astral.sh/uv/install.sh | sh

Set up the project:

uv sync

Run tests:

uv run pytest

Deploy to PyPI

Deployment is handled automatically by CI when pushing to master. To build and publish manually:

uv build
uv publish

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.19.0.tar.gz (6.1 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.19.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shopcloud_secrethub-2.19.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.5 {"installer":{"name":"uv","version":"0.11.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for shopcloud_secrethub-2.19.0.tar.gz
Algorithm Hash digest
SHA256 e51690057eb0939e6b8a80a75954617763212d278309bf8f506ddd74f0b65e8c
MD5 ecb945e538cb7a673ba154ea8d5e1bb0
BLAKE2b-256 ab06ab126ad47a69dce7d5608e804ffb92475d0dacd720a99ae7d693f5ee773e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shopcloud_secrethub-2.19.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.5 {"installer":{"name":"uv","version":"0.11.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for shopcloud_secrethub-2.19.0-py3-none-any.whl
Algorithm Hash digest
SHA256 75eac85d68f77461c0b042408b4e51ea8343a492b7e6fbb45cd59d8441e24627
MD5 159b37afa56548e50e0dd1b0cc056eaa
BLAKE2b-256 92e33f121fbf04774b637266c19364bb99f5e35337da323b95578c1a3bf2a98e

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