Skip to content

Add a python interface #59

Description

@adamchainz

It would be useful if Python applications could do something like:

import treehugger

my_vars = treehugger.decrypt('''
TREEHUGGER_APP: foo
TREEHUGGER_STAGE: bar
BAZ: {encrypted: 1234}
''')
print(my_vars['BAZ'])

This would be especially useful on Lambda, where the built-in encrypted variable support isn't very useful as it doesn't use any encryption context, so all lambdas need access to decrypt all other lambdas' variables, and any other data encrypted with that key.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions