Enable log redaction by default in TiFlash Server and Proxy

オープン
#11,160 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
15/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
cpp
領域
backend, databases

調査の方向性

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 の本文から書いたものです。

説明

affects-8.5 component/storage type/enhancement

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:

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

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pingcap/tiflash のほかの issue

pingcap/tiflash の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。