Skip to content

Added option to configure DEK cache lifetime #1689

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 7 commits into from
May 1, 2025
Merged

Conversation

rozza
Copy link
Member

@rozza rozza commented Apr 28, 2025

Added the AutoEncryptionSettings.Builder#keyExpiration method and ClientEncryptionSettings.Builder#keyExpiration method to configure the cache expiration time for data encryption keys.

JAVA-5547

Added the `AutoEncryptionSettings.Builder#keyExpiration` method
and `ClientEncryptionSettings.Builder#keyExpiration` method
to configure the cache expiration time for data encryption keys.

JAVA-5547
@rozza rozza requested review from a team and nhachicha and removed request for a team April 28, 2025 16:55
Copy link
Contributor

@nhachicha nhachicha left a comment

Choose a reason for hiding this comment

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

LGTM 👍
1- Does this use the updated spec tests? mongodb/specifications@787bbe6

2- What happens when the key expires? Are we testing this via unified or prose test?

rozza and others added 6 commits April 30, 2025 14:45
Co-authored-by: Nabil Hachicha <nabil.hachicha@gmail.com>
Co-authored-by: Nabil Hachicha <nabil.hachicha@gmail.com>
Co-authored-by: Nabil Hachicha <nabil.hachicha@gmail.com>
Co-authored-by: Nabil Hachicha <nabil.hachicha@gmail.com>
…yptOptions.java

Co-authored-by: Nabil Hachicha <nabil.hachicha@gmail.com>
Co-authored-by: Nabil Hachicha <nabil.hachicha@gmail.com>
@rozza
Copy link
Member Author

rozza commented Apr 30, 2025

@nhachicha thanks for the review:

1- Does this use the updated spec tests?

Yes 👍

2- What happens when the key expires? Are we testing this via unified or prose test?

This is handled by libmongocrypt and is covered by unified and their tests

@rozza rozza requested a review from nhachicha April 30, 2025 13:48
@rozza rozza merged commit 89d6be1 into mongodb:main May 1, 2025
21 of 54 checks passed
@rozza rozza deleted the JAVA-5547 branch May 1, 2025 10:08
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.

2 participants