-
Notifications
You must be signed in to change notification settings - Fork 454
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
CDRIVER-5644 Add option to configure DEK cache lifetime #1779
base: master
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,27 @@ | |||
:man_page: mongoc_auto_encryption_opts_set_key_expiration |
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.
Add mongoc_auto_encryption_opts_set_key_expiration
to the toctree
of mongoc_auto_encryption_opts_t.rst
to include in the docs. Fixes error from the docs build:
mongoc_auto_encryption_opts_set_key_expiration.rst:document isn't included in any toctree
CONTRIBUTING.md documents how to build docs locally. To build libmongoc docs, I use:
DIR=src/libmongoc/doc
OUTDIR=cmake-build/src/libmongoc/doc/html
poetry run sphinx-autobuild -b html $DIR $OUTDIR --re-ignore ".*.pickle" --re-ignore ".*.doctree" -j auto --port 9000 -W
@@ -0,0 +1,27 @@ | |||
:man_page: mongoc_client_encryption_opts_set_key_expiration |
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.
Add mongoc_client_encryption_opts_set_key_expiration
to the toctree
of mongoc_client_encryption_opts_t.rst
to include in the docs.
@@ -1428,6 +1429,13 @@ _mongoc_crypt_new (const bson_t *kms_providers, | |||
goto fail; | |||
} | |||
|
|||
if (cache_expiration_ms.set) { | |||
mongocrypt_setopt_key_expiration (crypt->handle, cache_expiration_ms.value); |
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.
Suggest doing git merge master
to update compile-libmongocrypt.sh
to use libmongocrypt 1.12.0. libmongocrypt 1.12.0 contains the needed mongocrypt_setopt_key_expiration
symbol.
[still needs a unified test using ClientEncryption, otherwise ready]