File tree 1 file changed +15
-1
lines changed
DynamoDbEncryption/dafny/DynamoDbEncryption/src
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,21 @@ module SearchConfigToInfo {
119
119
&& config. multi. keyFieldName in outer. attributeActionsOnEncrypt
120
120
&& outer. attributeActionsOnEncrypt[config. multi. keyFieldName] == SE. ENCRYPT_AND_SIGN
121
121
==> output. Failure?
122
+ // Not in Spec, but for now, SE does not support the Shared Cache Type
123
+ ensures
124
+ && config. multi?
125
+ && config. multi. cache. Some?
126
+ && config. multi. cache. value. Shared?
127
+ && output. Failure?
128
+ // If the failure was NOT caused by booting up the MPL
129
+ && ! output. error. AwsCryptographyMaterialProviders?
130
+ ==>
131
+ && output. error. DynamoDbEncryptionException?
132
+ && output. error. message == "Searchable Encryption does not support the Shared Cache type at this time. "
122
133
{
134
+ // TODO-FutureCleanUp : It is not-good that the MPL is initialized here;
135
+ // The MPL has a config object that could hold customer intent that affects behavior.
136
+ // Today, it does not. But tomorrow?
123
137
var mplR := MaterialProviders. MaterialProviders ();
124
138
var mpl :- mplR. MapFailure (e => AwsCryptographyMaterialProviders(e));
125
139
@@ -139,7 +153,7 @@ module SearchConfigToInfo {
139
153
140
154
var cache;
141
155
if cacheType. Shared? {
142
- return Failure (DynamoDbEncryptionException(message:="Searchable Encryption does not support shared caches "));
156
+ return Failure (DynamoDbEncryptionException(message:="Searchable Encryption does not support the Shared Cache type at this time. "));
143
157
// cache := cacheType.Shared;
144
158
} else {
145
159
// = specification/searchable-encryption/search-config.md#key-store-cache
You can’t perform that action at this time.
0 commit comments