Helper for getting secrets from different storage
Project description
secrets-storage
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
secrets-storage-0.8.0.tar.gz
(7.7 kB
view hashes)
Built Distribution
Close
Hashes for secrets_storage-0.8.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97d7f3419b3468a253a25e10ec299e9270ce6ae6fa00a02d7452f5bf454019da |
|
MD5 | 67662cea8493f5e43ea766320ad92648 |
|
BLAKE2b-256 | d9b8463aa24b1f4d32b2e02a5ef05f10cc26239ee858456033b209f98655b1fa |