Skip to content

Commit f2de534

Browse files
authored
CDRIVER-5299 Bump libmongocrypt to 1.10.0 (#1573)
* bump required libmongocrypt version to 1.10.0 * replace "Client-Side Field Level Encryption" with "In-Use Encryption" in errors and docs "In-Use Encryption" is the umbrella term referring to both "Client-Side Field Level Encryption" and "Queryable Encryption". * fix docs typo Link refers to QE, but text incorrectly refers to CSFLE * update NEWS * bump version in script
1 parent 9f31222 commit f2de534

File tree

5 files changed

+20
-13
lines changed

5 files changed

+20
-13
lines changed

.evergreen/scripts/compile-libmongocrypt.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ compile_libmongocrypt() {
1010
# `.evergreen/scripts/kms-divergence-check.sh` to ensure that there is no
1111
# divergence in the copied files.
1212

13-
# TODO: once 1.9.0 is released (containing MONGOCRYPT-605) replace the following with:
14-
# git clone -q --depth=1 https://github.com/mongodb/libmongocrypt --branch 1.9.0 || return
13+
# TODO: once 1.10.0 is released (containing MONGOCRYPT-605) replace the following with:
14+
# git clone -q --depth=1 https://github.com/mongodb/libmongocrypt --branch 1.10.0 || return
1515
{
1616
git clone -q https://github.com/mongodb/libmongocrypt || return
1717
# Check out commit containing MONGOCRYPT-614
@@ -23,7 +23,7 @@ compile_libmongocrypt() {
2323
"-DBUILD_TESTING=OFF"
2424
"-DENABLE_ONLINE_TESTS=OFF"
2525
"-DENABLE_MONGOC=OFF"
26-
"-DBUILD_VERSION=1.9.0-pre"
26+
"-DBUILD_VERSION=1.10.0-pre"
2727
)
2828

2929
DEBUG="0" \

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ The mock server timeout threshold for future functions can be set with:
241241

242242
This is useful for debugging, so future calls don't timeout when stepping through code.
243243

244-
Tests of Client-Side Field Level Encryption require credentials to external KMS providers.
244+
Tests of In-Use Encryption require credentials to external KMS providers.
245245

246246
For AWS:
247247

@@ -261,20 +261,20 @@ For GCP:
261261
* `MONGOC_TEST_GCP_EMAIL=<string>`
262262
* `MONGOC_TEST_GCP_PRIVATEKEY=<string>`
263263

264-
Tests of Client-Side Field Level Encryption also require temporary credentials to external KMS providers.
264+
Tests of In-Use Encryption also require temporary credentials to external KMS providers.
265265

266266
For AWS:
267267

268268
* `MONGOC_TEST_AWS_TEMP_SECRET_ACCESS_KEY=<string>`
269269
* `MONGOC_TEST_AWS_TEMP_ACCESS_KEY_ID=<string>`
270270
* `MONGOC_TEST_AWS_TEMP_SESSION_TOKEN=<string>`
271271

272-
Tests of Client-Side Field Level Encryption spawn an extra process, "mongocryptd", by default. To bypass this spawning,
272+
Tests of In-Use Encryption spawn an extra process, "mongocryptd", by default. To bypass this spawning,
273273
start mongocryptd on port 27020 and set the following:
274274

275275
* `MONGOC_TEST_MONGOCRYPTD_BYPASS_SPAWN=on`
276276

277-
KMS TLS tests for Client-Side Field Level Encryption require mock KMS servers to be running in the background.
277+
KMS TLS tests for In-Use Encryption require mock KMS servers to be running in the background.
278278

279279
The [Setup instructions](https://github.com/mongodb/specifications/tree/master/source/client-side-encryption/tests#setup-3) given in the Client Side Encryption Tests specification provide additional information.
280280

NEWS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
libmongoc 1.27.0 (Unreleased)
2+
=============================
3+
4+
Notes:
5+
6+
* Raise required version of libmongocrypt to 1.10.0 to support In-Use Encryption (corresponds to the CMake option: `ENABLE_CLIENT_SIDE_ENCRYPTION`).
7+
18
libmongoc 1.26.2
29
================
310

src/libmongoc/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -484,9 +484,9 @@ endif ()
484484

485485
if (NOT MONGOC_ENABLE_SSL)
486486
if (ENABLE_CLIENT_SIDE_ENCRYPTION STREQUAL ON)
487-
message (FATAL_ERROR "SSL disabled, but is required for Client-Side Field Level Encryption support.")
487+
message (FATAL_ERROR "SSL disabled, but is required for In-Use Encryption support.")
488488
elseif (ENABLE_CLIENT_SIDE_ENCRYPTION STREQUAL AUTO)
489-
message (STATUS "SSL disabled. Configuring without Client-Side Field Level Encryption support.")
489+
message (STATUS "SSL disabled. Configuring without In-Use Encryption support.")
490490
endif ()
491491
elseif (NOT ENABLE_CLIENT_SIDE_ENCRYPTION STREQUAL OFF)
492492
message (STATUS "Searching for libmongocrypt")
@@ -497,10 +497,10 @@ elseif (NOT ENABLE_CLIENT_SIDE_ENCRYPTION STREQUAL OFF)
497497
find_package (mongocrypt QUIET)
498498
endif ()
499499

500-
if (mongocrypt_FOUND AND "${mongocrypt_VERSION}" VERSION_LESS 1.8.0)
500+
if (mongocrypt_FOUND AND "${mongocrypt_VERSION}" VERSION_LESS 1.10.0)
501501
message (STATUS " libmongocrypt found at ${mongocrypt_DIR}")
502502
message (STATUS " libmongocrypt version ${mongocrypt_VERSION} found")
503-
message (STATUS " libmongocrypt version 1.8.0 is required to enable Client-Side Field Level Encryption Support.")
503+
message (STATUS " libmongocrypt version 1.10.0 is required to enable In-Use Encryption Support.")
504504
set (REQUIRED_MONGOCRYPT_VERSION_FOUND OFF)
505505
elseif (mongocrypt_FOUND)
506506
set (REQUIRED_MONGOCRYPT_VERSION_FOUND ON)
@@ -521,7 +521,7 @@ elseif (NOT ENABLE_CLIENT_SIDE_ENCRYPTION STREQUAL OFF)
521521
elseif (ENABLE_CLIENT_SIDE_ENCRYPTION STREQUAL ON)
522522
message (FATAL_ERROR "Required library (libmongocrypt) not found.")
523523
else ()
524-
message (STATUS "libmongocrypt not found. Configuring without Client-Side Field Level Encryption support.")
524+
message (STATUS "libmongocrypt not found. Configuring without In-Use Encryption support.")
525525
endif ()
526526
endif ()
527527

src/libmongoc/doc/mongoc_auto_encryption_opts_set_encrypted_fields_map.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Parameters
2222

2323
Supplying an ``encrypted_fields_map`` provides more security than relying on an ``encryptedFields`` obtained from the server. It protects against a malicious server advertising a false ``encryptedFields``.
2424

25-
The schema map does not apply to collections encrypted with: :doc:`Client-Side Field Level Encryption </queryable-encryption>`. See :symbol:`mongoc_auto_encryption_opts_set_schema_map()` instead.
25+
The schema map does not apply to collections encrypted with: :doc:`Queryable Encryption </queryable-encryption>`. See :symbol:`mongoc_auto_encryption_opts_set_schema_map()` instead.
2626

2727
.. seealso::
2828

0 commit comments

Comments
 (0)