[CDRIVER-4584] Update libmongocrypt payloads to new QE protocol Created: 21/Feb/23  Updated: 28/Oct/23  Resolved: 06/Apr/23

Status: Closed
Project: C Driver
Component/s: Client Side Encryption
Affects Version/s: None
Fix Version/s: 1.24.0

Type: Task Priority: Unknown
Reporter: PM Bot Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by PHPC-2203 Support Queryable Encryption v2 proto... Closed
is depended on by CXX-2656 Update libmongocrypt payloads to new ... Closed
Issue split
split from DRIVERS-2435 Update libmongocrypt payloads to new ... Closed
Related
is related to PHPLIB-1088 Update Queryable Encryption tests for... Closed
Server Compat: 7.0, 7.1
Upstream Changes Summary:

DRIVERS-2435:
Drivers are expected to update the Queryable Encryption (QE) tests. See https://github.com/mongodb/specifications/commit/64deb2837a2355f6002775c49b9b6c50c9dc560f for changes. Here is a summary:

See https://github.com/mongodb/mongo-go-driver/pull/1213 for the example Go driver implementation.

Also consider: To fix test failures without enabling QEv2: sync spec tests to https://github.com/mongodb/specifications/commit/baf3724155500acbb557e158b8a5d4334e7f3512 and skip to QE prose tests on server versions > 6.2.99. That may be helpful to backport to release branches so the tests on release branches do not fail against latest servers.

Changelog:
2023-04-26: libmongocrypt 1.8.0-alpha1 was released and removes the `mongocrypt_setopt_fle2v2` symbol. QEv2 is enabled by default.


 Description   

This ticket was split from DRIVERS-2435, please see that ticket for a detailed description.



 Comments   
Comment by Githook User [ 01/May/23 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: CDRIVER-4584 use libmongocrypt 1.8.0-alpha1 (#1253)

  • use libmongocrypt 1.8.0-alpha1
Comment by Githook User [ 06/Apr/23 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: CDRIVER-4584 support Queryable Encryption v2 (#1228)

  • add setfle2parameter.py workaround

To enable the featureFlagFLE2ProtocolVersion2 until it is enabled by default in SERVER-69563

  • remove `fle2-*` tests
  • add `fle2v2-*` tests

Syncs to specifications commit 64deb2837a2355f6002775c49b9b6c50c9dc560f

  • call `mongocrypt_setopt_fle2v2` to enable QEv2
  • format test-mongoc-client-side-encryption.c
  • skip QE prose tests on server < 7.0.0 and serverless

remove unnecessary wire version checks server version is now checked in the function call

  • use libmongocrypt 1.8.0-alpha0
  • require libmongocrypt 1.8.0
  • use macro for skips
  • Simplify error messages

Co-authored-by: Ezra Chung <88335979+eramongodb@users.noreply.github.com>

  • check for error on mongocrypt_setopt_fle2v2
  • use skip functions for consistency
  • remove extra whitespace
  • Revert "add setfle2parameter.py workaround"

This reverts commit aa82b191e6bd8175041f34bfe639cdf507b06a79.

---------

Co-authored-by: Ezra Chung <88335979+eramongodb@users.noreply.github.com>
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/8aced03a963e70182b79d883e881f239766b09bf

Generated at Wed Feb 07 21:21:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.