Repository navigation
pd: enable log redaction by default #24548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -65,7 +65,11 @@ To enable log redaction in the TiKV side, set the value of [`security.redact-inf | |||||
|
|
||||||
| ## Log redaction in PD side | ||||||
|
|
||||||
| To enable log redaction in the PD side, set the value of [`security.redact-info-log`](/pd-configuration-file.md#redact-info-log-new-in-v50) to `true` or `"marker"`. This configuration value defaults to `false`, which means that log redaction is disabled. | ||||||
| To enable log redaction in the PD side, set the value of [`security.redact-info-log`](/pd-configuration-file.md#redact-info-log-new-in-v50) to `true` or `"marker"`. Starting from v9.0.0, if this configuration item is not explicitly set in the configuration file, it defaults to `true`, which means that log redaction is enabled. Before v9.0.0, the default value is `false`. | ||||||
|
|
||||||
| Redaction applies only to logs and outputs that support redaction, including PD logs, operator additional info, [Online Unsafe Recovery](/online-unsafe-recovery.md) plans, and some error messages returned to clients. Keys in operator additional info are displayed as a redaction placeholder rather than the raw key. Audit logs are not affected by this configuration item and still record the original request content. A small number of other logs might still contain raw keys. See [#11406](https://github.com/tikv/pd/issues/11406). | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Document the mode-specific operator-key output. This sentence applies the placeholder claim to both supported modes. The reviewed implementation displays Proposed replacement
Committable suggestion
🧰 Tools
|
||||||
|
|
||||||
| This configuration item cannot be changed online. Restart PD after changing it. TSO, Scheduling, and other PD microservices use the same setting, and each service takes the default value of `true` when the item is not explicitly set in its configuration. TiKV and TiDB log redaction still default to disabled; when troubleshooting, disable redaction for each component and restart it as needed. | ||||||
|
|
||||||
| ## Log redaction in TiFlash side | ||||||
|
|
||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -215,7 +215,10 @@ Configuration items related to security | |
|
|
||
| + Controls whether to enable log redaction in the PD log | ||
| + Optional value: `false`, `true`, `"marker"` | ||
| + Default value: `false` | ||
| + Default value: starting from v9.0.0, the default value is `true`. Before v9.0.0, the default value is `false`. | ||
| + Redaction applies only to logs and outputs that support redaction, including PD logs, operator additional info, [Online Unsafe Recovery](/online-unsafe-recovery.md) plans, and some error messages returned to clients. Keys in operator additional info are displayed as a redaction placeholder rather than the raw key. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Keep the configuration reference accurate for This entry also says that operator additional info always uses a placeholder. In Proposed replacement
|
||
| + Audit logs are not affected by this configuration item and still record the original request content. A small number of other logs might still contain raw keys. See [#11406](https://github.com/tikv/pd/issues/11406). | ||
| + This configuration item cannot be changed online. Restart PD after changing it. To disable redaction, set it to `false`. | ||
| + For details on how to use it, see [Log redaction in PD side](/log-redaction.md#log-redaction-in-pd-side). | ||
|
|
||
| ## `log` | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -71,7 +71,8 @@ Configuration items related to security | |||||||
|
|
||||||||
| - Controls whether to enable log redaction in Scheduling node logs. | ||||||||
| - When you set the configuration value to `true`, user data is redacted in Scheduling node logs. | ||||||||
| - Default value: `false` | ||||||||
| - Default value: starting from v9.0.0, the default value is `true`. Before v9.0.0, the default value is `false`. | ||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. List the supported values for the shared setting. The shared PD security setting accepts Proposed insertion
Committable suggestion
|
||||||||
| - Redaction applies only to logs and outputs that support redaction. This configuration item cannot be changed online. Restart the Scheduling node after changing it. | ||||||||
|
|
||||||||
| ## log | ||||||||
|
|
||||||||
|
|
||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔎 Supported by static analysis
Script executed:
Repository: pingcap/docs
Length of output: 13387
Web query:
What is the merge status and release inclusion of tikv/pd pull request 11402, and which PD release first includes its change to make security.redact-info-log default to true?Result:
Script executed:
Repository: pingcap/docs
Length of output: 22114
Do not publish the v9.0.0 default yet.
PD PR
#11402is still open and is not merged intomaster. Update thev9.0.0wording inlog-redaction.md,pd-configuration-file.md,scheduling-configuration-file.md, andtso-configuration-file.mdto the first release that contains the change.