File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
DynamoDbEncryption/dafny/DynamoDbEncryption/src Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments