Add option to configure DEK cache lifetime

XMLWordPrintableJSON

    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      This ticket was split from DRIVERS-2781, please see that ticket for a detailed description.

      Use Case

      As a developer
      I want to be able to configure the DEK cache storage time
      So that I can limit the number of KMS requests

      User Experience

      • User can configure the timeout of the decrypted DEK key.

      Dependencies

      • Depends on libmongocrypt 1.12

      Risks/Unknowns

      • None

      Acceptance Criteria

      Implementation Requirements

      • Add the keyExpirationMS option to the bindings and encryption options TS in mongodb-client-encryption.
      • Expose keyExpirationMS option in the driver for auto encryption options and client encryption options.
      • Update libmongocrypt dependency in mongodb-client-encryption to latest (1.14.0) (see NODE-6841)
      • Update the mongodb-client-encryption dependency in the driver to the latest release.

      Testing Requirements

      Documentation Requirements

      • Add API docs for the new timeout option.

      Follow Up Requirements

      • None

            Assignee:
            Durran Jordan
            Reporter:
            TPM Jira Automations Bot
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: