Enable log redaction by default in TiFlash Server and Proxy

Đang mở
#11,160 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
15/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
cpp
Lĩnh vực
backend, databases

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
C++
Star
1k
Fork
428
Merge trung bình
2 ngày 7 giờ
Pull request đã merge (30 ngày)
100

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pingcap/tiflash

Tất cả issue của pingcap/tiflash

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.