Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for KMS "encryption context" #18

Merged
merged 1 commit into from
Jun 1, 2015

Conversation

gene1wood
Copy link
Contributor

This PR adds support for Encryption Contexts. I've implemented it so as to be backwards compatible with all existing credstash interfaces.

I had to change from using a single global argparse to use subparsers in order to allow for the differing expected positional arguments for each action. Previously this was worked around in the put command by having a nargs='?' setting for the value argument. Using subparsers will accommodate the differing expected positional arguments. It also makes the usage clearer as to what's expected for each different action.

I figured using positional arguments for the encryption contexts in a key=value format would work best but I'm happy to change this to some other format (optional --foo arguments, one argument for the key and one for the value, etc)

This should address issues #13 and #17

Changing argparse to use subparsers in order to allow for the differing expected positional arguments for each action
@a5an0
Copy link
Contributor

a5an0 commented Jun 1, 2015

They k=v syntax works for me. I think it's clear enough what is happening, and is easy to template out in scripts.
This is awesome. Thanks for taking the time. I'll push a the new version to PyPi today.

a5an0 added a commit that referenced this pull request Jun 1, 2015
Adding support for KMS "encryption context"
@a5an0 a5an0 merged commit 7ef3f9e into fugue:master Jun 1, 2015
@gene1wood gene1wood deleted the add-encryption-context branch June 1, 2015 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants