Enable log redaction by default in TiFlash Server and Proxy
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 15/100
調査の方向性
Read the coordinated implementation PRs, TiFlash #11158 and tidb-engine-ext #460, and inspect the Server and Learner/Proxy security defaults, configuration samples, and client-c mode propagation they change. The issue reports successful focused tests and cluster validation; the full integration CI retry stopped at an external Rust mirror timeout. Done means both defaults and samples agree, explicit modes are preserved, client-c receives the correct mode, and relevant tests pass.
索引モデルが issue の本文から書いたものです。
説明
Enhancement
Enable log redaction by default in both TiFlash Server and TiFlash Learner/Proxy, so deployments that omit the redaction options do not print supported user-data values by default.
Current defaults:
- Server:
security.redact_info_log = false. - Learner/Proxy:
security.redact-info-log = false.
Expected behavior:
- Default both configuration options to
true, including missing security sections and missing options. - Preserve explicit
false/"off"and"marker"configurations. - Keep configuration samples consistent with the defaults.
- Correct mode propagation to client-c, which currently falls through to marker mode.
Implementation:
- TiFlash Server: https://github.com/pingcap/tiflash/pull/11158
- TiFlash Proxy: https://github.com/pingcap/tidb-engine-ext/pull/460
Validation results (2026-10-27):
- Build actual native ARM64 TiFlash (41ce1aca2e) and Proxy (4246ca1) from the two PRs.
- Start a complete local cluster: 1 PD + 1 TiKV + 1 TiDB + 1 modified TiFlash/Proxy.
- Omit both redaction options in active configs; confirm runtime Proxy configuration reports
redact-info-log: true. - TiFlash replica becomes available (availability/progress 1); forced query returns the expected row with an
mpp[tiflash]plan. - Actual Server runtime probes: default hides the key, explicit false preserves the raw key, marker wraps it.
- Actual corrected
region_merge_common_handle.test: passed in 43.046 seconds. - Local Proxy configuration tests: 10 passed; local Security unit tests: 2 passed.
- Actual local native C++ GoogleTests: 10 passed, 0 failed (3 RedactLogTest + 7 TiFlashSecurityTest).
- Shut down all task-owned test clusters/mock servers cleanly and retain built binaries and logs.
The latest full integration CI retry stopped before tests because the external Rust mirror rsproxy.cn returned HTTP 504. The focused local tests and modified-component cluster startup/query validation above completed successfully.
The two PRs are coordinated changes; the Proxy code is maintained in the separate tidb-engine-ext repository.
- 主要言語
- C++
- スター
- 1k
- フォーク
- 428
- 平均マージ
- 2日 7時間
- マージ済み PR(30日)
- 100
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pingcap/tiflash のほかの issue
-
component/compute type/bug
難易度 2/5 1〜2日 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
Out-of-bounds read in MyDateTime formatting from unvalidated packed values対応中かも @ChangRui-Ryan が今日担当しました。 オープンaffects-25.10 affects-26.3 affects-26.9 affects-7.5 affects-8.1 affects-8.5 severity/major type/bug
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
メンテナーはふだん 1 日以内に返信
-
component/storage severity/moderate type/bug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
pingcap/tiflash#11335 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
Missing validation in JSON constructors, LEFT expressions, and CH-block decoding対応中かも @windtalker が今日担当しました。 オープンtype/bug
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
メンテナーはふだん 1 日以内に返信
-
[disagg] Query fails with Code: 11000 NoSuchKey when S3 GC (ScanThenDelete) removes a DMFile that a compute node still reads対応中かも @JinheLin が 6 日前に担当しました。 オープンmay-affects-25.10 may-affects-26.3 may-affects-26.9 may-affects-7.5 may-affects-8.1 may-affects-8.5 severity/moderate type/bug
pingcap/tiflash#11291 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
pingcap/tiflash の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
useless statementオープン
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
grizzlypeak3d/DJV#962 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信