Skip to main content

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

  1. Import the library.

    from SecretManagerCredentials.SecretManagerFetcher import SecretManagerFetcher
    
  2. 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
  3. 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

SecretManagerCredentials-0.0.6.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

SecretManagerCredentials-0.0.6-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file SecretManagerCredentials-0.0.6.tar.gz.

File metadata

File hashes

Hashes for SecretManagerCredentials-0.0.6.tar.gz
Algorithm Hash digest
SHA256 ebffa4deb5e37001e01e69844773151dbab21c4496aae3c11549583fd70a74f2
MD5 82d07bbcfffce98760d833afc6a2b365
BLAKE2b-256 0a7fb99d5b7d3c1f5a8acd820c57c30fc093621000ab56521ec840ece1ae00bb

See more details on using hashes here.

File details

Details for the file SecretManagerCredentials-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for SecretManagerCredentials-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e8a993d67e39995b43985227bf948dca29d715d3bd898b60fd04144e453f32fd
MD5 b404cdb4c69eba72749486b629426efd
BLAKE2b-256 421568c6a4291e90b7d1a17f276193930a3fc46110d80104cda5488d710670dc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page