[MONGOCRYPT-429] Do not bypass create, collMod, or createIndexes Created: 16/May/22  Updated: 28/Oct/23  Resolved: 25/May/22

Status: Closed
Project: Libmongocrypt
Component/s: None
Affects Version/s: None
Fix Version/s: 1.5.0-alpha2, 1.5.0

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

Issue Links:
Duplicate
Related
related to MONGOCRYPT-435 createIndexes and create break with b... Closed
related to MONGOCRYPT-436 create command to query analysis does... Closed
is related to MONGOCRYPT-463 collMod with FLE1 does not allow sett... Closed
Binding Changes: Not Needed

 Description   

Scope

  • Update _check_cmd_for_auto_encrypt to not bypass create, collMod, or createIndexes.

Background & Motivation

Query analysis bans comparisons to encrypted fields in collection validator and partialFilterExpression per SERVER-64911.



 Comments   
Comment by Githook User [ 25/May/22 ]

Author:

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

Message: MONGOCRYPT-429 process create, collMod, and createIndexes commands (#341)

  • do not bypass create, collMod, or createIndexes
  • do not append encryptionInformation for create, collMod, or createIndexes in the final command.
  • skip the MONGOCRYPT_CTX_NEED_MONGO_COLLINFO state for the create command
  • run isMaster on mongocryptd for "create" and "createIndexes" to determine if the maxWireVersion supports the "create" or "createIndexes" command.
Generated at Thu Feb 08 09:08:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.