[MONGOCRYPT-7] Key broker deduplication broken Created: 27/Jun/19  Updated: 28/Oct/23  Resolved: 28/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   

The key broker acts as intermediary storage of keys for encrypting/decrypting a single operation. When markings are received in libmongocrypt, the key broker tracks all requested key ids and alt names. When key documents are received,  some entries are deduplicated (because a key may have been requested by both id and alt name, or multiple alt names). Due to a bug in this logic, it was possible for the key broker to lose key entries, resulting in an encryption/decryption failure due to missing key.



 Comments   
Comment by Githook User [ 01/Jul/19 ]

Author:

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

Message: CDRIVER-3216 fix formatting
Branch: master
https://github.com/mongodb/libmongocrypt/commit/bafdf3776ae5df8c0a6462b8e9f8c62bd015f94b

Comment by Githook User [ 28/Jun/19 ]

Author:

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

Message: CDRIVER-3216 fix key broker deduplication - pt. 2
Branch: master
https://github.com/mongodb/libmongocrypt/commit/5bbde6a7cfa589424e5ffb4384e8d35ca5ada6cd

Comment by Githook User [ 27/Jun/19 ]

Author:

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

Message: CDRIVER-3216 fix key broker deduplication
Branch: master
https://github.com/mongodb/libmongocrypt/commit/0eba19957659ce0a88ac814c55c0ffc55c8671c1

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