Skip to content

Create keyring trace and add to encryption and decryption materials. #134

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

Merged
merged 3 commits into from
Oct 30, 2019

Conversation

WesleyRosenblum
Copy link
Contributor

Issue #, if available: #102

Description of changes:

Creating a keyring trace and adding to encryption and decryption materials to allow for auditing actions a keyring has taken on encryption materials.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Check any applicable:

  • Were any files moved? Moving files changes their URL, which breaks all hyperlinks to the files.

*Issue #, if available:* #102

*Description of changes:*

Creating a keyring trace and adding to encryption and decryption materials to allow for auditing actions a keyring has taken on encryption materials.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

# Check any applicable:
- [ ] Were any files moved? Moving files changes their URL, which breaks all hyperlinks to the files.
@mattsb42-aws mattsb42-aws mentioned this pull request Oct 25, 2019
15 tasks
Comment on lines 38 to 49
/**
* A flag to represent that the keyring has cryptographically
* bound the encryption context to a newly created encrypted data key.
*/
WRAPPING_KEY_SIGNED_ENC_CTX,

/**
* A flag to represent that the keyring has verified that an encrypted
* data key was originally created with a particular encryption context.
*/
WRAPPING_KEY_VERIFIED_ENC_CTX
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thoughts on changing these names to spell out "encryption context"? I know these are the magic strings that we've used to date, but since we decided we're not worrying about communicating them across implementations I kind of want to go back in the Python implementation and expand this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me. And actually the spec already spells out the word anyway (https://github.com/awslabs/aws-encryption-sdk-specification/blob/master/framework/structures.md#flags). I'll get rid of the "WRAPPING_KEY_" part too, I don't think that is adding much

@WesleyRosenblum WesleyRosenblum merged commit 9307933 into keyring Oct 30, 2019
@WesleyRosenblum WesleyRosenblum deleted the trace branch October 30, 2019 17:17
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.

2 participants