Skip to content

Commit

Permalink
cherry pick pingcap#4997 to master
Browse files Browse the repository at this point in the history
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
  • Loading branch information
TomShawn authored and ti-srebot committed Mar 10, 2021
1 parent 1a73a9d commit 3b33c82
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions log-redaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ To enable log redaction in the TiKV side, set the value of [`security.redact-inf

## Log redaction in PD side

<<<<<<< HEAD
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-v500-rc) to `true`. 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-v4010) to `true`. This configuration value defaults to `false`, which means that log redaction is disabled.
>>>>>>> 5b116f80... Log redact on TiFlash and PD (4.0) (#4997)
## Log redaction in TiFlash side

Expand Down
4 changes: 4 additions & 0 deletions pd-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,11 @@ Configuration items related to security
+ The path of the PEM file that contains the X509 key
+ Default value: ""
<<<<<<< HEAD
### `redact-info-log` <span class="version-mark">New in v5.0.0-rc</span>
=======
### `redact-info-log` <span class="version-mark">New in v4.0.10</span>
>>>>>>> 5b116f80... Log redact on TiFlash and PD (4.0) (#4997)
+ Controls whether to enable log redaction in the PD log.
+ When you set the configuration value to `true`, user data is redacted in the PD log.
Expand Down
5 changes: 5 additions & 0 deletions tiflash/tiflash-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,11 @@ delta_index_cache_size = 0
# cert_path = "/path/to/tiflash-server.pem"
## Path of the file that contains X509 key in PEM format.
# key_path = "/path/to/tiflash-server-key.pem"

## New in v4.0.10. This configuration item enables or disables log redaction. If the configuration value
## is set to `true`, all user data in the log will be replaced by `?`.
## Note that you also need to set `security.redact-info-log` for tiflash-learner's logging in tiflash-learner.toml.
# redact_info_log = false
```

### Configure the `tiflash-learner.toml` file
Expand Down

0 comments on commit 3b33c82

Please sign in to comment.