-
Notifications
You must be signed in to change notification settings - Fork 12
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
feat(DynamoDbEncryption): Add GetEncryptedDataKeyDescription operation #856
Conversation
This reverts commit 447630d.
…-sdk-dynamodb into rishav-feat-parser
...Encryption/dafny/DynamoDbEncryption/src/AwsCryptographyDbEncryptionSdkDynamoDbOperations.dfy
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. You probably want someone else's opinion.
DynamoDbEncryption/dafny/DynamoDbEncryption/test/DynamoDbGetEncryptedDataKeyDescriptionTest.dfy
Outdated
Show resolved
Hide resolved
DynamoDbEncryption/dafny/DynamoDbEncryption/test/DynamoDbGetEncryptedDataKeyDescriptionTest.dfy
Show resolved
Hide resolved
...c/main/java/software/amazon/cryptography/examples/GetEncryptedDataKeyDescriptionExample.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blocking on a lack of User Documentation (@JavaDoc
in the Smithy Model).
Though... I hope we can improve the plaintextItem
name...
specification/dynamodb-encryption-client/ddb-get-encrypted-data-key-description.md
Outdated
Show resolved
Hide resolved
DynamoDbEncryption/dafny/DynamoDbEncryption/Model/DynamoDbEncryption.smithy
Show resolved
Hide resolved
DynamoDbEncryption/dafny/DynamoDbEncryption/Model/DynamoDbEncryption.smithy
Outdated
Show resolved
Hide resolved
...Encryption/dafny/DynamoDbEncryption/src/AwsCryptographyDbEncryptionSdkDynamoDbOperations.dfy
Outdated
Show resolved
Hide resolved
...Encryption/dafny/DynamoDbEncryption/src/AwsCryptographyDbEncryptionSdkDynamoDbOperations.dfy
Show resolved
Hide resolved
...c/main/java/software/amazon/cryptography/examples/GetEncryptedDataKeyDescriptionExample.java
Show resolved
Hide resolved
public void TestGetEncryptedDataKeyDescription() { | ||
GetEncryptedDataKeyDescriptionExample.getEncryptedDataKeyDescription(TestUtils.TEST_DDB_TABLE_NAME,"partition_key","BasicPutGetExample","sort_key","0","aws-kms",TestUtils.TEST_KMS_KEY_ID,null,null); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refactor this to:
- Only pass
TestUtils.TEST_DDB_TABLE_NAME,"partition_key","BasicPutGetExample"
- Have
getEncryptedDataKeyDescription
returnEncryptedDataKeyDescription
, which the methods name implies with get. - Move all the assertions from the Example to this test.
Examples/runtimes/net/src/GetEncryptedDataKeyDescriptionExample.cs
Outdated
Show resolved
Hide resolved
specification/dynamodb-encryption-client/ddb-get-encrypted-data-key-description.md
Outdated
Show resolved
Hide resolved
specification/dynamodb-encryption-client/ddb-get-encrypted-data-key-description.md
Show resolved
Hide resolved
...c/main/java/software/amazon/cryptography/examples/GetEncryptedDataKeyDescriptionExample.java
Show resolved
Hide resolved
## [3.5.0](v3.4.0...v3.5.0) (2024-05-30) ### Features * **DynamoDbEncryption:** Add GetEncryptedDataKeyDescription operation ([#856](#856)) ([8f8471a](8f8471a)) * improve verification ([#1020](#1020)) ([cbde4ef](cbde4ef)) * simplify structured encryption ([#866](#866)) ([a70a569](a70a569)) ### Maintenance * allow Legacy to use subclass of DynamoDBEncryptor ([#1073](#1073)) ([135acd9](135acd9)) * bump MPL to 1.4 ([#1067](#1067)) ([51bbab5](51bbab5)) * **Java-Release:** update release commands and use SNAPSHOT builds ([#995](#995)) ([ac9b79e](ac9b79e)) * reformat and enforce formatting ([#1035](#1035)) ([8a76a9d](8a76a9d)) * verify with Dafny 4.6 ([#1072](#1072)) ([9db6e78](9db6e78))
* chore(release): 3.5.0 ## [3.5.0](v3.4.0...v3.5.0) (2024-05-30) ### Features * **DynamoDbEncryption:** Add GetEncryptedDataKeyDescription operation ([#856](#856)) ([8f8471a](8f8471a)) * improve verification ([#1020](#1020)) ([cbde4ef](cbde4ef)) * simplify structured encryption ([#866](#866)) ([a70a569](a70a569)) ### Maintenance * allow Legacy to use subclass of DynamoDBEncryptor ([#1073](#1073)) ([135acd9](135acd9)) * bump MPL to 1.4 ([#1067](#1067)) ([51bbab5](51bbab5)) * **Java-Release:** update release commands and use SNAPSHOT builds ([#995](#995)) ([ac9b79e](ac9b79e)) * reformat and enforce formatting ([#1035](#1035)) ([8a76a9d](8a76a9d)) * verify with Dafny 4.6 ([#1072](#1072)) ([9db6e78](9db6e78))
Issue #, if available:
Description of changes:
This PR adds GetEncryptedDataKeyDescription to DynamoDbEncryption.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.