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.
*: mark various non-sensitive strings as safe
This change updates a few previously redacted constants and simple types often printed to logs to be marked as safe, not needing redaction. These do not represent sensitive data, such as such as the "s" pluralizer, the type of Admission Control work queue, or a node's liveness record, but they had not been marked safe or had `SafeFormatter` implemented previously. The types/constants marked as safe are listed as follows with examples: - `livenesspb.Liveness`: e.g. `liveness(nid:124 epo:12 exp:12345.6789,0)` - `livenesspb.MembershipStatus`: e.g. `active`, `decommissioning` - `admission.WorkKind`: e.g. `kv`, `sql-kv-response`, etc - `util.Pluralize()`: e.g. `s` on end of strings - `upgrade.Name()`: e.g. `Upgrade to 0.0-2: "add users and roles"` This includes a fix for the format string used in printing `enginepb.EngineType` at startup, printing `pebble` instead of `‹2›`. Lastly, this also adds `pebble.FormatMajorVersion` to the list of allowed `redact.SafeValue`s in anticipation of cockroachdb/pebble#2992, in the same vein as this PR. Epic: none Release note: None
- Loading branch information
1 parent
7ba9725
commit f9cd179
Showing
12 changed files
with
79 additions
and
34 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
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
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
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