-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
83807: sql, telemetry: show correctly redacted error message r=andreimatei,rafiss,abarganier a=dhartunian Previously, the error string from an executed SQL statement was treated as a `string` type which would get fully redacted on its way out to the telemetry log. This change writes the `error` type into a `RedactableString` which preserves the redaction in the error as intended. This will preserve the template string which we consider safe by default, for instance. The `CommonSQLExecDetails` type in `sql_audit_events.proto` has been modified to have the `error_text` field represented as a `RedactableString` which helps us maintain the preservation of redaction markers. Resolves: #78353 Release note (ops change): Telemetry logs will now display more finely redacted error messages from sql execution. Previously, the entire error string was fully redacted. Co-authored-by: David Hartunian <[email protected]>
- Loading branch information
Showing
5 changed files
with
157 additions
and
129 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
Oops, something went wrong.