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

CDRIVER-5644 Add option to configure DEK cache lifetime #1779

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

adriandole
Copy link
Contributor

@adriandole adriandole commented Oct 24, 2024

[still needs a unified test using ClientEncryption, otherwise ready]

@@ -0,0 +1,27 @@
:man_page: mongoc_auto_encryption_opts_set_key_expiration
Copy link
Collaborator

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
Copy link
Collaborator

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.

src/libmongoc/tests/json-test.c Outdated Show resolved Hide resolved
src/libmongoc/tests/unified/entity-map.c Outdated Show resolved Hide resolved
@@ -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);
Copy link
Collaborator

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.

src/libmongoc/tests/unified/entity-map.c Outdated Show resolved Hide resolved
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