[MONGOCRYPT-27] Non matching binData values stripped during auto encryption Created: 25/Jun/19  Updated: 28/Oct/23  Resolved: 27/Jun/19

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

Type: Bug Priority: Critical - P2
Reporter: Kevin Albertson Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Build libmongocrypt library

 Description   

libmongocrypt strips away non-matching binData for auto encryption (i.e. not a marking|ciphertext during encryption|decryption). So code like the following:

db.test.insert({auto_encrypted: 123, explicitly_encrypted: ce.encrypt(123, opts) })

... will silently strip the "explicitly_encrypted" field in the insert command.



 Comments   
Comment by Githook User [ 27/Jun/19 ]

Author:

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

Message: CDRIVER-3204 fix stripping during auto encryption
Branch: master
https://github.com/mongodb/libmongocrypt/commit/7fb09cac246ef78e38a00c5c53b6fe159071647a

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