[MONGOCRYPT-125] Check command upon auto encryption initialization Created: 23/May/19  Updated: 28/Oct/23  Resolved: 31/May/19

Status: Closed
Project: Libmongocrypt
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task 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:
Related
related to MONGOCRYPT-126 Set isRemoteSchema Closed
Epic Link: Build libmongocrypt library

 Description   

Per document review meeting, we've decided to move the check for whether a command should undergo auto encryption from the driver into libmongocrypt. This requires a change to mongocrypt_ctx_encrypt_init to take the full command instead of just the namespace.

In addition, now for MONGOCRYPT_CTX_MONGO_NEED_MARKINGS, instead of just returning the jsonSchema, we can return the full command to be sent to mongocryptd.



 Comments   
Comment by Githook User [ 31/May/19 ]

Author:

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

Message: CDRIVER-3148 check cmd in auto encryption
Branch: master
https://github.com/10gen/libmongocrypt/commit/36228756137c13985337d13ba0d8d2b224208ed8

Comment by Githook User [ 31/May/19 ]

Author:

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

Message: CDRIVER-3148 check cmd in auto encryption
Branch: master
https://github.com/10gen/libmongocrypt/commit/36228756137c13985337d13ba0d8d2b224208ed8

Comment by Githook User [ 31/May/19 ]

Author:

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

Message: CDRIVER-3148 check cmd in auto encryption
Branch: master
https://github.com/10gen/libmongocrypt/commit/36228756137c13985337d13ba0d8d2b224208ed8

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