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
*: wrap safe diagnostic arguments with errors.Safe() for redacted crash reports
For panic messages using errors.AssertionFailedf, arguments are redacted
by default in CockroachDB crash reports. Wrap safe diagnostic arguments
(internal identifiers, counts, sizes, enum values) with errors.Safe() so
they appear in redacted reports, while leaving user keys and values
unwrapped to prevent PII leaks.
Also add SafeFormat/String implementations for interleavePos,
compactionKind, CompactionState, and vfs.OpType so these types are
self-formatting as safe values.
Co-Authored-By: roachdev-claude <roachdev-claude-bot@cockroachlabs.com>
panic(errors.AssertionFailedf("malformed suffix: %x (length byte is %d; but suffix is %d bytes)", a, a[len(a)-1], len(a)))
479
+
panic(errors.AssertionFailedf("malformed suffix: %x (length byte is %d; but suffix is %d bytes)", errors.Safe(a), errors.Safe(a[len(a)-1]), errors.Safe(len(a))))
0 commit comments