-
Type: Task
-
Resolution: Done
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
rewrapManyDataKey currently works by performing a rewrap operation using the state machine, and then performs a bulkWrite operation to replace each modified key in the key vault (using ReplaceOne). https://github.com/mongodb/libmongocrypt/pull/382 updates the return value of the rewrap operation in the state machine to include only the necessary keys for an update operation instead of the whole documents. Without updating our implementation of rewrapManyDataKey, we now will replace documents in the keyvault with incomplete documents.
Acceptance Criteria
- Update the internals of rewrapManyDataKey to use a bulkWrite of UpdateOne operations instead of ReplaceOne operations.
- has to be finished together with
-
NODE-4332 Allow RewrapManyDataKeyResult.bulkWriteResult to be optional
- Closed
- related to
-
MONGOCRYPT-450 Remove unnecessary fields from rewrapManyDataKey result
- Closed