[DRIVERS-2371] Require contentionFactor for "Indexed" explicit encryption Created: 26/Jun/22  Updated: 31/Mar/23  Resolved: 31/Mar/23

Status: Closed
Project: Drivers
Component/s: Client Side Encryption
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Kevin Albertson Assignee: Kevin Albertson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on MONGOCRYPT-447 Raise default contention factor to 4 Closed
Gantt End to End
has to be finished together with DRIVERS-2302 Add FLE 2 API to ClientEncryptionOpts Closed
Issue split
split to CDRIVER-4417 Require contentionFactor for "Indexed... Closed
split to CSHARP-4235 Require contentionFactor for "Indexed... Closed
split to CXX-2536 Require contentionFactor for "Indexed... Closed
split to GODRIVER-2474 Require contentionFactor for "Indexed... Closed
split to JAVA-4662 Require contentionFactor for "Indexed... Closed
split to MOTOR-988 Require contentionFactor for "Indexed... Closed
split to NODE-4343 Require contentionFactor for "Indexed... Closed
split to PHPLIB-905 Require contentionFactor for "Indexed... Closed
split to PYTHON-3319 Require contentionFactor for "Indexed... Closed
split to RUBY-3040 Require contentionFactor for "Indexed... Closed
split to RUST-1378 Require contentionFactor for "Indexed... Closed
Related
is related to SERVER-66663 Raise default contention factor for F... Closed
Driver Changes: Needed
Downstream Changes Summary:

Update "explicit encryption" prose tests to include required contentionFactor option.
Please see https://github.com/mongodb/specifications/commit/41b335af92c12258a4cbe7e93ad4f34ef31641a7 for updated tests.

Driver Compliance:
Key Status/Resolution FixVersion
CDRIVER-4417 Fixed 1.22.0
CXX-2536 Done
CSHARP-4235 Fixed 2.17.0
GODRIVER-2474 Fixed 1.10.0
JAVA-4662 Done
NODE-4343 Fixed mongodb-client-encryption-2.2.0
MOTOR-988 Duplicate
PYTHON-3319 Fixed 4.2
PHPLIB-905 Fixed 1.13.0
RUBY-3040 Fixed 2.18.0
RUST-1378 Duplicate
SWIFT-1593 Duplicate

 Description   

Summary

  • Require contentionFactor for "Indexed" explicit encryption

The default is handled in libmongocrypt. Drivers will need to upgrade libmongocrypt and update Queryable Encryption prose tests.

Motivation

The server plans to support increasing the contention factor in the future. If libmongocrypt uses a fixed default value, that may risk the default client and server contention factors going out of sync.

The default contention factor value was raised to 4 on the server in SERVER-66663.

Is this issue urgent?

Yes. This is required for correctness in Queryable Encryption with explicit encryption. This should be done before 6.0 releases.

Is this ticket required by a downstream team?

No.

Is this ticket only for tests?

Yes. libmongocrypt will update the default. Driver teams only need to update tests.



 Comments   
Comment by Githook User [ 28/Jun/22 ]

Author:

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

Message: DRIVERS-2371 add required contention factor to prose tests (#1266)
Branch: master
https://github.com/mongodb/specifications/commit/41b335af92c12258a4cbe7e93ad4f34ef31641a7

Generated at Thu Feb 08 08:25:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.