-
Notifications
You must be signed in to change notification settings - Fork 86
Intermittent success when decrypting using KMSMasterKey, on object encrypted using Multiple CMKs #150
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
Comments
@johnwalker Could you include the full stacktrace from the reproduction case you ran? It looks like this is probably caused by a too-narrow catch of exceptions in |
Yes!
|
Yup. Root cause here is that we need to catch both To test this, we will need two EDKs and a master key that matches one of them. We then need to pass in a list of EDKs that has the matching EDK second. |
* MasterKeyprovider.decrypt_data_key_from_list should catch expected exceptions from both MasterKeyProvider.decrypt_data_key and MasterKey.decrypt_data_key #150 * add MKP.decrypt_data_key_from_list fix to changelog
This fix is available in published version 1.4.0 |
Decrypting using
master_key_provider_B
fails intermittently with:The expected behavior is that decryption always succeeds, since
B's
CMK is among those used inA's
.The text was updated successfully, but these errors were encountered: