-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Tidb log redaction leaks raw keys to logs #59279
Copy link
Copy link
Closed
Labels
affects-6.5This bug affects the 6.5.x(LTS) versions.This bug affects the 6.5.x(LTS) versions.affects-7.1This bug affects the 7.1.x(LTS) versions.This bug affects the 7.1.x(LTS) versions.affects-7.5This bug affects the 7.5.x(LTS) versions.This bug affects the 7.5.x(LTS) versions.affects-8.1This bug affects the 8.1.x(LTS) versions.This bug affects the 8.1.x(LTS) versions.affects-8.5This bug affects the 8.5.x(LTS) versions.This bug affects the 8.5.x(LTS) versions.affects-9.0This bug affects the 9.0.x versions.This bug affects the 9.0.x versions.severity/majorsig/sql-infraSIG: SQL InfraSIG: SQL Infratype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Metadata
Metadata
Assignees
Labels
affects-6.5This bug affects the 6.5.x(LTS) versions.This bug affects the 6.5.x(LTS) versions.affects-7.1This bug affects the 7.1.x(LTS) versions.This bug affects the 7.1.x(LTS) versions.affects-7.5This bug affects the 7.5.x(LTS) versions.This bug affects the 7.5.x(LTS) versions.affects-8.1This bug affects the 8.1.x(LTS) versions.This bug affects the 8.1.x(LTS) versions.affects-8.5This bug affects the 8.5.x(LTS) versions.This bug affects the 8.5.x(LTS) versions.affects-9.0This bug affects the 9.0.x versions.This bug affects the 9.0.x versions.severity/majorsig/sql-infraSIG: SQL InfraSIG: SQL Infratype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Bug Report
When tidb log redaction turned on. There are still messages in the log that contains the raw region key information which should have been sanitized.
1. Minimal reproduce step (Required)
Turn on global log redaction
mysql> SHOW VARIABLES LIKE 'tidb_redact_log';+-----------------+-------+
| Variable_name | Value |
+-----------------+-------+
| tidb_redact_log | ON |
+-----------------+-------+
1 row in set (0.00 sec)
Create new table and add dummy data.
2. What did you expect to see? (Required)
All key values redacted.
3. What did you see instead (Required)
See the repro steps.
4. What is your TiDB version? (Required)
v6.5, v7.5, v8.1, v8.5