Skip to content
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

Merged
merged 7 commits into from
Nov 22, 2024

Conversation

adriandole
Copy link
Contributor

@adriandole adriandole commented Nov 12, 2024

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.

@adriandole adriandole requested a review from a team as a code owner November 12, 2024 21:35
@adriandole adriandole requested review from katcharov and removed request for a team November 12, 2024 21:35
@adriandole adriandole requested a review from a team as a code owner November 12, 2024 22:19
@adriandole adriandole requested review from jmikola and removed request for a team November 12, 2024 22:19
Copy link
Member

@jmikola jmikola left a 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.

Copy link
Contributor

@katcharov katcharov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@kevinAlbs kevinAlbs left a 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

source/client-side-encryption/client-side-encryption.md Outdated Show resolved Hide resolved
source/client-side-encryption/client-side-encryption.md Outdated Show resolved Hide resolved
Uint64 API

Co-authored-by: Kevin Albertson <kevin.albertson@10gen.com>
@adriandole adriandole merged commit ecce2ec into mongodb:master Nov 22, 2024
4 of 5 checks passed
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.

4 participants