-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of some errors during an AWS HTTP request (#7811)
- Fixes the retry mechanism of some AWS HTTP requests in some cases, like STS. The osquery MakeRequest implementation for the AWS SDK was incorrectly setting a 200 response code when the osquery http client would throw an exception, due to some internal error or simply due to reaching the timeout for sending the request. Not only this hides some of the logging that could happen when this is reported as an error, but it also prevents the AWS SDK logic to retry again. - Improve again the STS credentials retrieval failure message, since in some cases the error message was empty. Now print the error message when present, the STS error type, and the HTTP response code, when present. - Improve support on shutting down quickly when the AWS logger plugin is retrying sending logs.
- Loading branch information
Showing
3 changed files
with
67 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters