Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(NODE-6947): add keyExpirationMS to bindings #78

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 8, 2025
Merged

Conversation

durran
Copy link
Member

@durran durran commented May 7, 2025

Description

Adds the option keyExpirationMS to set the DEK cache expiration time.

What is changing?

  • Adds the keyExpirationMS option to the TS types.
  • Sets the option if provided when constructing a MongoCrypt.
  • Updates libmongocrypt to 1.14
Is there new documentation needed for these changes?

None

What is the motivation for this change?

NODE-6947

Release Highlight

DEK cache expiration time now configurable.

A new option, keyExpirationMS can now be provided to set the new value. The default is 60000

import { MongoCrypt } from 'mongodb-client-encryption';
const crypt = new MongoCrypt({ keyExpirationMS: 100000 });

Double check the following

  • Ran npm run check:lint script
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: type(NODE-xxxx)[!]: description
    • Example: feat(NODE-1234)!: rewriting everything in coffeescript
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

@durran durran marked this pull request as ready for review May 7, 2025 17:58
@durran durran requested a review from a team as a code owner May 7, 2025 17:58
@durran durran requested a review from baileympearson May 7, 2025 19:43
@baileympearson baileympearson merged commit d0fcc4b into main May 8, 2025
41 checks passed
@baileympearson baileympearson deleted the NODE-6947 branch May 8, 2025 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants