secret-manager
Secret manager for Python
How to use
Add dependency -
secrets-manager==0.0.2
Set environment variable -
APP_ENV = prod/staging
APP_NAME = IAMservice
In config file:
from secretmanager import secrets
redshift_secrets = secrets['redshift']
REDSHIFT_HOST = redshift_secrets['host']
REDSHIFT_PORT = redshift_secrets['port']
REDSHIFT_USER = redshift_secrets['username']
REDSHIFT_PASS = redshift_secrets['password']
REDSHIFT_DB = redshift_secrets['dbname']
Secret manager changes -
Secret format is -
APP_NAME + "_" + APP_ENV + "_" + SECRET_NAME
Go to secret manager and add secret name in above defined format eg(IAMservice_prod_redshift)
Add key value pair inside as -
host = <redshift_host>
port = <redshift_host>
SECRET_NAME will be used to access secret in your code.
In above example SECRET_NAME = redshift
Release files for secret-manager 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| secret-manager-0.0.3.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| secret_manager-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.0 kB
Release files / secret-manager-0.0.3.tar.gz
| Download URL | secret-manager-0.0.3.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
86c8cc762fa6ff72494b3845d4a11de2485e788ef5f63ee582d9794af8faea30
|
|
BLAKE2b-256 checksum How to use checksums |
f869e8eee8569cba09d88718dd3da323dd5b77e9f1a3a805f828f356ad3218cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3
|
Release files / secret_manager-0.0.3-py3-none-any.whl
| Download URL | secret_manager-0.0.3-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e1dda220304255119d978f1d1334aba21cd1b8ee907119ac71753d4dbc6bcc7b
|
|
BLAKE2b-256 checksum How to use checksums |
2dcd9f64f12f5aa81fe244b0e48ca000bf6228e66d052909f6b6e7bb70902e85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3
|