secrets-storage

Helper for getting secrets from different storage


Keywords
hvac, vault-client
License
Apache-2.0
Install
pip install secrets-storage==0.10.0

Documentation

secrets-storage

CI codecov pypi downloads versions license

secrets-storage is a helper for getting secrets from different storage.

Installation

secrets-storage is available on PyPI. Use pip to install:

$ pip install secrets-storage

Basic Usage

from secrets_storage import VaultStorage, ENVStorage, Secrets

IS_PROD = True

vault_storage = VaultStorage(
    host="VAULT_ADDR",
    namespace="VAULT_PATH",
    role="VAULT_ROLE",
    available=IS_PROD,
)

secrets = Secrets(storages=[vault_storage, ENVStorage()])


secrets.get("TEST_PASSWOD")

License

secrets-storage is developed and distributed under the Apache 2.0 license.

Reporting a Security Vulnerability

See our security policy.