[CDRIVER-4694] Do not rely on kms_request_append_payload() to calculate payload length Created: 18/Jul/23 Updated: 28/Oct/23 Resolved: 25/Jul/23 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | Authentication |
| Affects Version/s: | None |
| Fix Version/s: | 1.24.3 |
| Type: | Bug | Priority: | Unknown |
| Reporter: | Jeremy Mikola | Assignee: | Jeremy Mikola |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
Summarylibmongoc and libmongocrypt have divergent KMS libraries ( Independent of a fix in libmongocrypt to relax the assertion logic, libmongoc can work around this by explicitly calculating the payload length instead of passing -1. EnvironmentObserved building the PHP driver with libmongoc 1.24.1 and libmongocrypt 1.8.1, but the issue goes back to libmongocrypt 1.7.0. |
| Comments |
| Comment by Githook User [ 18/Jul/23 ] |
|
Author: {'name': 'Jeremy Mikola', 'email': 'jmikola@gmail.com', 'username': 'jmikola'}Message: This fixes an assert failure during MONGODB-AWS auth when an application is bundled with both libmongoc and libmongocrypt, and libmongocrypt's KMS library is used. |
| Comment by Githook User [ 18/Jul/23 ] |
|
Author: {'name': 'Jeremy Mikola', 'email': 'jmikola@gmail.com', 'username': 'jmikola'}Message: This fixes an assert failure during MONGODB-AWS auth when an application is bundled with both libmongoc and libmongocrypt, and libmongocrypt's KMS library is used. |
| Comment by Jeremy Mikola [ 18/Jul/23 ] |