Update implementation of rewrapManyDataKey to use UpdateOne operations

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • 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.

              Assignee:
              Anna Henningsen
              Reporter:
              Bailey Pearson
              Bailey Pearson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: