Skip to content

Commit 2ef5869

Browse files
authored
Merge branch 'main' into rkapila/shared-cache-beacons
2 parents 2fac140 + ffc67be commit 2ef5869

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

DynamoDbEncryption/dafny/DynamoDbEncryption/src/ConfigToInfo.dfy

+16
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,23 @@ module SearchConfigToInfo {
134134
&& config.multi.keyFieldName in outer.attributeActionsOnEncrypt
135135
&& outer.attributeActionsOnEncrypt[config.multi.keyFieldName] == SE.ENCRYPT_AND_SIGN
136136
==> output.Failure?
137+
// Not in Spec, but for now, SE does not support the Shared Cache Type
138+
ensures
139+
&& config.multi?
140+
&& config.multi.cache.Some?
141+
&& config.multi.cache.value.Shared?
142+
==>
143+
&& output.Failure?
144+
// If the failure was NOT caused by booting up the MPL
145+
&& !output.error.AwsCryptographyMaterialProviders?
146+
==>
147+
&& output.error.DynamoDbEncryptionException?
148+
&& output.error.message == "Searchable Encryption does not support the Shared Cache type at this time."
137149
{
150+
// TODO-FutureCleanUp : https://github.com/aws/aws-database-encryption-sdk-dynamodb/issues/1510
151+
// It is not-good that the MPL is initialized here;
152+
// The MPL has a config object that could hold customer intent that affects behavior.
153+
// Today, it does not. But tomorrow?
138154
var mplR := MaterialProviders.MaterialProviders();
139155
var mpl :- mplR.MapFailure(e => AwsCryptographyMaterialProviders(e));
140156

0 commit comments

Comments
 (0)