-
Notifications
You must be signed in to change notification settings - Fork 244
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
DRIVERS-2781 Add option to configure DEK cache lifetime #1730
Conversation
9903016
to
44b7329
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: I only reviewed the unified-test-format changes. I'll defer to @katcharov on the CSFLE tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with a change from Int64
to Uint64
Uint64 API Co-authored-by: Kevin Albertson <kevin.albertson@10gen.com>
Background
By default, libmongocrypt caches data encryption keys for one minute. Customers have reported that this duration can be too short and cause excessive traffic for fetching DEKs. This PR adds an option to set the cache expiration time.
Contents
Adds explicit encryption (legacy) and auto encryption (unified) tests.