← Back to Pull requests

[feature] support Kafka client SCRAM authentication #4320

Open
unknown opened this pull request with 174 lines diff across 2 files
View on GitHub
unknown unknown commented on Aug 15, 2026 13:14 UTC
Author

What's changed?

Adds optional SCRAM authentication to Kafka Client monitoring.

  • add PLAINTEXT, SASL_PLAINTEXT, and SASL_SSL security protocol options

  • support SCRAM-SHA-256 and SCRAM-SHA-512 with username and password credentials

  • configure the Kafka AdminClient with the selected security settings while preserving unauthenticated monitoring by default

  • isolate cached AdminClient connections by authentication settings and keep passwords out of protocol diagnostics

  • document the new settings in the English and Chinese Kafka Client monitoring guides
  • Closes #4209

    Verification

  • KafkaProtocolTest (23 tests)

  • KafkaCollectTest (7 tests)

  • YamlCheckScript through the 22-module manager reactor

  • repository Markdown lint (567 files)
  • Checklist

  • I have read the Contributing Guide

  • I have written the necessary doc or comment.

  • I have added the necessary unit tests and all cases have passed.
  • Add or update API

  • I have added the necessary e2e tests and all cases have passed.
  • Not applicable: this change does not add or update an API. SCRAM validation, AdminClient property mapping, credential escaping, cache isolation, and plaintext compatibility are covered by unit tests.

    Diff: 174 lines (+130 / -44) across 2 files Reviewer: Duansg Review duration: 155035m
    All Vouch review confidence checks passed
    Residual risk 0.38 = Change Risk (0.66) × (1 − Review Confidence (0.42)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.66 · 174 lines diff across 2 files
    0.66
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    42%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.309
    Sensitive Paths sensitive_paths
    0.066
    Real PR Conversation Timeline
    1 comments
    "Review active on #4320"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 42.2% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 65.5% (HIGH) · Higher = larger blast radius
    65.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 42.2% · Lower = rushed or shallow review
    42.2%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 37.9% · Moderate risk
    37.9%