forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
105456: cloud: surface more AWS errors r=shermanCRL a=shermanCRL Surface errors that would otherwise be redacted, making diagnosis in (e.g.) Splunk difficult. Where before it might say: `stepping through state failed with error: failed to get s3 object: ‹×›` It now will say: `stepping through state failed with error: failed to get s3 object: AssumeRole: AccessDenied: ‹×›` #### User story The user story is "make known failures grep-able / searchable in redacted logs". In the current state, the failure examples above are not knowable in a redacted log. The troubleshooter needs to get privileged access to see the real cause. This means an hour to initial diagnosis. With the above, we hope the initial diagnosis will be minutes. #### Details awserr.Code() is just a string (an enum really), let's return it. Doesn't contain sensitive information. Look for "AccessDenied" and "AssumeRole" keywords in the unredacted error, and surface them without sensitive information. Retains the previous stringy error messages, in case something is depending on them. Also reduced the Bazel timeout for test run, as a local convenience -- maybe too little for the real tests, let's see Jira: none Epic: CRDB-26887 Co-authored-by: Matt Sherman <[email protected]>
- Loading branch information
Showing
3 changed files
with
145 additions
and
12 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