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

getKeyVault.createKey() should return the created data key

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.2.1, 4.3.1
    • Component/s: Shell
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v4.2
    • Sprint:
      Security 2019-09-09

      Description

      In 4.2.0, the getKeyVault.createKey() method returns a WriteResult instead of the created key. This requires users to do one of two things:

      • Search by key alternate name for the created key, or
      • Search all keys in reverse creation order for the most recently created key

      As noted in the spec document, data key creation methods should return at least the _id of the created document.

      The 4.2 shell should either return the _id of the created data key per-spec.

       

      Relevant code here

       

      cc Shreyas Kalyan

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: