File tree 1 file changed +16
-0
lines changed
DynamoDbEncryption/dafny/DynamoDbEncryption/src
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,23 @@ module SearchConfigToInfo {
134
134
&& config. multi. keyFieldName in outer. attributeActionsOnEncrypt
135
135
&& outer. attributeActionsOnEncrypt[config. multi. keyFieldName] == SE. ENCRYPT_AND_SIGN
136
136
==> 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. "
137
149
{
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?
138
154
var mplR := MaterialProviders. MaterialProviders ();
139
155
var mpl :- mplR. MapFailure (e => AwsCryptographyMaterialProviders(e));
140
156
You can’t perform that action at this time.
0 commit comments