You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
147762: pkg/util/uuid: Make uuid parsing errors as safe string r=Abhinav1299 a=Abhinav1299
This patch helps to make the uuid parsing errors as safe so that when the roachpb.Key is
logged, the error message is not redacted.
The prior implementation of uuid errors followed the fmt.Errorf strings which are
categorised as unsafe by default when logged using %v verb of string formatting.
This patch convert those error objects to use redact.Safe implementation.
These errors are printed here: https://github.com/cockroachdb/cockroach/blob/master/pkg/keys/printer.go#L598-L611
Before (fmt.Errorf) and After (errors.Newf) flow

Epic: CRDB-37533
Part of: CRDB-44885
Release note: None
Co-authored-by: Abhinav1299 <[email protected]>
0 commit comments