Convenient wrapper for executing codes on AWS for connecting and fetching credentials from vault
Project description
Vault Credential Fetcher
Convenient wrapper for executing codes on AWS for connecting and fetching credentials from vault.
Install with pip
$ pip install SecretManagerCredentials
Usage
-
Import the library.
from SecretManagerCredentials.SecretManagerFetcher import SecretManagerFetcher
-
Create an instance.
SM = SecretManagerFetcher(project_path="", logger=<your_logger_instance>, environment="", display_vault_info=True, vault_config_path="")
Arguments (all are mandatory):
project_path
: Project name, which would serve as the logger's name (if specified), and the prefix for log filenames.logger
: your Logger Instance"environment"
: Execution Environment"display_vault_info"
: By default it is False, used for displaying vault info"vault_config_path"
: Path where vault config is kept, relative to project path
-
Get a logger and start logging.
VaultCreds = SM.get_vault_cred()
Author
© 2023, Mallikarjuna Devaraya.
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
Built Distribution
File details
Details for the file SecretManagerCredentials-0.0.6.tar.gz
.
File metadata
- Download URL: SecretManagerCredentials-0.0.6.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebffa4deb5e37001e01e69844773151dbab21c4496aae3c11549583fd70a74f2 |
|
MD5 | 82d07bbcfffce98760d833afc6a2b365 |
|
BLAKE2b-256 | 0a7fb99d5b7d3c1f5a8acd820c57c30fc093621000ab56521ec840ece1ae00bb |
File details
Details for the file SecretManagerCredentials-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: SecretManagerCredentials-0.0.6-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8a993d67e39995b43985227bf948dca29d715d3bd898b60fd04144e453f32fd |
|
MD5 | b404cdb4c69eba72749486b629426efd |
|
BLAKE2b-256 | 421568c6a4291e90b7d1a17f276193930a3fc46110d80104cda5488d710670dc |