Skip to content

Commit

Permalink
Merge branch 'main' into jocorell/update-examples
Browse files Browse the repository at this point in the history
  • Loading branch information
josecorella authored Nov 8, 2024
2 parents c320fe5 + ff3acac commit a628e11
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,10 @@ private static DynamoDbTableEncryptionConfig getTableConfig(
builder = builder.plaintextOverride(configWithSchema.plaintextOverride());
}

if (!Objects.isNull(configWithSchema.algorithmSuiteId())) {
builder = builder.algorithmSuiteId(configWithSchema.algorithmSuiteId());
}

return builder
.allowedUnsignedAttributePrefix(
configWithSchema.allowedUnsignedAttributePrefix()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ public void TestMultipleTables() {
.keyring(createKmsKeyring())
.allowedUnsignedAttributes(Arrays.asList("doNothing"))
.schemaOnEncrypt(simpleSchema)
.algorithmSuiteId(
DBEAlgorithmSuiteId.ALG_AES_256_GCM_HKDF_SHA512_COMMIT_KEY_SYMSIG_HMAC_SHA384
)
.build()
);
tableConfigs.put(
Expand Down Expand Up @@ -102,6 +105,10 @@ public void TestMultipleTables() {
.config()
.tableEncryptionConfigs()
.get("SimpleClassTestTable");
assertEquals(
DBEAlgorithmSuiteId.ALG_AES_256_GCM_HKDF_SHA512_COMMIT_KEY_SYMSIG_HMAC_SHA384,
simpleConfig.algorithmSuiteId()
);
assertEquals(
CryptoAction.DO_NOTHING,
simpleConfig.attributeActionsOnEncrypt().get("doNothing")
Expand Down

0 comments on commit a628e11

Please sign in to comment.