Skip to content

Add an example for replicating the behavior of the AWS KMS MKP with the AWS KMS keyring #178

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 7 commits into from
Apr 24, 2020

Conversation

WesleyRosenblum
Copy link
Contributor

Issue #, if available:

Description of changes:

In addition to using the configured AWS KMS CMKs, the AWS KMS master key provider attempts to decrypt any data keys that were encrypted under an AWS KMS CMK. This behavior is not always obvious, and when we designed the AWS KMS keyring, we decided that it was best to separate these behaviors, but as customers migrate from master key providers to keyrings, it will be helpful to have an example of how to replicate the exact behavior of the AWS KMS master key provider using keyrings.

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.

WesleyRosenblum and others added 5 commits April 20, 2020 13:57
… encrypt without a public key (#180)

* Throw a more useful exception when trying to use the RawRsaKeyring to encrypt without a public key

* Add a test for trying to decrypt without a private key
…/ActLikeAwsKmsMasterKeyProvider.java

Co-Authored-By: Matt Bullock <[email protected]>
@WesleyRosenblum WesleyRosenblum merged commit 676407a into master Apr 24, 2020
@WesleyRosenblum WesleyRosenblum deleted the mkp branch April 24, 2020 18:42
acioc added a commit that referenced this pull request Aug 6, 2020
* Revert "Merge pull request #173 from aws/keyring"

This reverts commit 015fc3c, reversing
changes made to dcbc562.

* Revert "Add an example for replicating the behavior of the AWS KMS MKP with the AWS KMS keyring (#178)"

This reverts commit 676407a.

* Revert "Updating changelog for version 1.7.0 (#174)"

This reverts commit f18c383.

* Updating Changelog for version 1.6.2

*Description of changes:*

Updating Changelog for version 1.6.2

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.

* fix: validate entire ciphertext has been processed before returning (#191)

* fix: validate entire ciphertext has been processed before returning

* Updating changelog

* Updating version for 1.6.2 release (#192)

* Revert "Merge pull request #189 from mattsb42-aws/revert"

This reverts commit bd4da5b, reversing
changes made to d88fe8b.

* Replace failing Assert.fails with assertThrows per earlier PR changes

Co-authored-by: mattsb42-aws <[email protected]>
Co-authored-by: Wesley Rosenblum <[email protected]>
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