[MONGOCRYPT-82] KMS message should error if no AWS credentials are set Created: 26/Mar/19 Updated: 28/Oct/23 Resolved: 24/Apr/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: | Clyde Bazile III (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Epic Link: | Build libmongocrypt library |
| Description |
|
In kms-message, calling kms_request_get_signed without setting AWS credentials should fail but doesn't. kms-message doesn't error but gives you a malformed request. We should set an error on the passed kms_request_t (using KMS_ERROR) and return NULL. Let's add a test in test_kms_request.c to verify the behavior. It may be worthwhile to have other functions in kms-message fail as well. |