Skip to main content

Decrypt shush-like KMS-encrypted strings stored in the environment

Project description

silenceofthelambs

A python module that decrypts shush-like KMS-encrypted strings stored in the environment, for use in places where using shush env as your entrypoint is not an option, e.g. AWS Lambda.

Usage

silenceofthelambs has two key usages:

  1. Imported and manually activated

    import silenceofthelambs
    
    # in your main() func, or wherever makes sense
    silenceofthelambs.decrypt()
    

    If you want to provide your own boto3 KMS client (e.g. if you need to use different credentials/region):

    import silenceofthelambs
    import boto3
    
    myclient = boto3.client("kms", .....)
    
    silenceofthelambs.decrypt(kms_client=myclient)
    
  2. Imported and automatically activated

    silenceofthelambs also supports auto-activation, using a default boto3 KMS client.

    import silenceofthelambs.auto
    

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

silenceofthelambs-0.0.2.tar.gz (7.6 kB view hashes)

Uploaded Source

Built Distribution

silenceofthelambs-0.0.2-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

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