Skip to content

Commit 6a45c6b

Browse files
NoahStappmdb-ad
authored andcommitted
PYTHON-5896 - [pymongocrypt] Bundle libmongocrypt 1.20.0 (#1197)
* PYTHON-5896 - [pymongocrypt] Bundle libmongocrypt 1.19.2 * Update binding + sbom * Formatting * Bundle 1.20.0 * SS review
1 parent 0582d90 commit 6a45c6b

4 files changed

Lines changed: 22 additions & 16 deletions

File tree

bindings/python/pymongocrypt/binding.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,10 @@ def _parse_version(version):
431431
* the path string is literal "$SYSTEM", then libmongocrypt will defer to the
432432
* system's library resolution mechanism to find the crypt_shared library.
433433
*
434+
* @warning Use of "$SYSTEM" will search system directories for the
435+
* mongo_crypt_v1.(dll,so,dylib) following the search behavior of LoadLibrary
436+
* on Windows and dlopen on Unix. Ensure secure deployment of the library.
437+
*
434438
* @note If no crypt_shared dynamic library is found in any of the directories
435439
* specified by the search paths loaded here, @ref mongocrypt_init() will still
436440
* succeed and continue to operate without crypt_shared.
@@ -687,7 +691,8 @@ def _parse_version(version):
687691
/// String constant for setopt_algorithm "Indexed" explicit encryption
688692
/// String constant for setopt_algorithm "Unindexed" explicit encryption
689693
// DEPRECATED: support "RangePreview" has been removed in favor of "range".
690-
/// NOTE: "textPreview" is experimental only and may be removed in a future non-major release.
694+
/// DEPRECATED: "textPreview" has been removed. Use "string".
695+
// String constant for setopt_algorithm "string" explicit encryption.
691696
692697
/**
693698
* Identify the AWS KMS master key to use for creating a data key.
@@ -1485,9 +1490,8 @@ def _parse_version(version):
14851490
bool mongocrypt_ctx_setopt_algorithm_range(mongocrypt_ctx_t *ctx, mongocrypt_binary_t *opts);
14861491
14871492
/**
1488-
* Set options for explicit encryption with the "textPreview" algorithm.
1493+
* Set options for explicit encryption with the "string" algorithm.
14891494
*
1490-
* NOTE: "textPreview" is experimental only and may be removed in a future non-major release.
14911495
* @p opts is a BSON document of the form:
14921496
* {
14931497
* "caseSensitive": bool,
@@ -1508,6 +1512,8 @@ def _parse_version(version):
15081512
* }
15091513
*
15101514
* "prefix" and "suffix" can both be set.
1515+
*
1516+
* NOTE: Driver public APIs should use the name "string" rather than "text" to refer to options.
15111517
*/
15121518
bool mongocrypt_ctx_setopt_algorithm_text(mongocrypt_ctx_t *ctx, mongocrypt_binary_t *opts);
15131519
@@ -1522,9 +1528,9 @@ def _parse_version(version):
15221528
15231529
/// String constants for setopt_query_type
15241530
// DEPRECATED: Support "rangePreview" has been removed in favor of "range".
1525-
/// NOTE: "substringPreview" is experimental and may be removed in a future non-major release.
1526-
/// NOTE: "suffixPreview" is experimental and may be removed in a future non-major release.
1527-
/// NOTE: "prefixPreview" is experimental and may be removed in a future non-major release.
1531+
/// DEPRECATED: Support for "substringPreview" has been removed in favor of "substring"
1532+
/// DEPRECATED: Support for "suffixPreview" has been removed in favor of "suffix"
1533+
/// DEPRECATED: Support for "prefixPreview" has been removed in favor of "prefix"
15281534
15291535
"""
15301536
)

bindings/python/sbom.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
{
22
"components": [
33
{
4-
"bom-ref": "pkg:github/mongodb/libmongocrypt@1.18.2",
4+
"bom-ref": "pkg:github/mongodb/libmongocrypt@1.20.0",
55
"externalReferences": [
66
{
77
"type": "distribution",
8-
"url": "https://github.com/mongodb/libmongocrypt/archive/1.18.2.tar.gz"
8+
"url": "https://github.com/mongodb/libmongocrypt/archive/1.20.0.tar.gz"
99
},
1010
{
1111
"type": "website",
12-
"url": "https://github.com/mongodb/libmongocrypt/tree/1.18.2"
12+
"url": "https://github.com/mongodb/libmongocrypt/tree/1.20.0"
1313
}
1414
],
1515
"group": "mongodb",
1616
"name": "libmongocrypt",
17-
"purl": "pkg:github/mongodb/libmongocrypt@1.18.2",
17+
"purl": "pkg:github/mongodb/libmongocrypt@1.20.0",
1818
"type": "library",
19-
"version": "1.18.2"
19+
"version": "1.20.0"
2020
}
2121
],
2222
"dependencies": [
2323
{
24-
"ref": "pkg:github/mongodb/libmongocrypt@1.18.2"
24+
"ref": "pkg:github/mongodb/libmongocrypt@1.20.0"
2525
}
2626
],
2727
"metadata": {
28-
"timestamp": "2026-06-03T00:00:00.000000+00:00",
28+
"timestamp": "2026-06-30T18:17:42.887189+00:00",
2929
"tools": [
3030
{
3131
"externalReferences": [
@@ -68,7 +68,7 @@
6868
}
6969
]
7070
},
71-
"serialNumber": "urn:uuid:fb7d4662-fe2d-495c-944f-034982ccc517",
71+
"serialNumber": "urn:uuid:fecaed8a-4f6b-41bf-87b1-977d29e6f44b",
7272
"version": 1,
7373
"$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json",
7474
"bomFormat": "CycloneDX",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.18.2
1+
1.20.0

src/mongocrypt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1606,7 +1606,7 @@ bool mongocrypt_setopt_key_expiration(mongocrypt_t *crypt, uint64_t cache_expira
16061606
/// DEPRECATED: Support for "suffixPreview" has been removed in favor of "suffix"
16071607
#define MONGOCRYPT_QUERY_TYPE_SUFFIXPREVIEW_DEPRECATED_STR "suffixPreview"
16081608
#define MONGOCRYPT_QUERY_TYPE_SUFFIX_STR "suffix"
1609-
/// DEPRECATED: Support for "prefixPreview" has been removed in favor of "suffix"
1609+
/// DEPRECATED: Support for "prefixPreview" has been removed in favor of "prefix"
16101610
#define MONGOCRYPT_QUERY_TYPE_PREFIXPREVIEW_DEPRECATED_STR "prefixPreview"
16111611
#define MONGOCRYPT_QUERY_TYPE_PREFIX_STR "prefix"
16121612

0 commit comments

Comments
 (0)