Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-87009

cleanupStructuredEncryptionData may fail to delete ESC anchor entries on Stale version errors

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Server Security
    • Fully Compatible
    • ALL
    • Security 2024-04-01

      The cleanupESCAnchors function receives a list of entries to be deleted, which gets served as a sequence of consecutive delete operations; processed entries are nevertheless removed to the list when they get added to a DeleteCommandRequest - and not when the command gets successfully completed.

      This may cause delete entries to be missed when cleanupESCAnchors is executed within the router loop of CleanupStructuredEncryptionDataCoordinator in case of StaleConfig/Db errors: in such a situation, the error is raised when performing the removal and the function gets called again without recalculating the list of pending delete operations.

            Assignee:
            erwin.pe@mongodb.com Erwin Pe
            Reporter:
            paolo.polato@mongodb.com Paolo Polato
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: