← Back to Pull requests

peerpod-ctrl: honour the cluster TLS profile on the metrics server #3329

Closed
unknown closed this pull request without merging on Sep 30, 2026 07:55 UTC
View on GitHub
unknown unknown commented on Sep 22, 2026 01:58 UTC
Author

Fixes #3328. Follow-up to #3314, as offered there.

The metrics server that replaced kube-rbac-proxy runs with Go's default TLS settings, while the webhook reads the operator-injected TLS_MIN_VERSION / TLS_CIPHER_SUITES and applies them to its servers, so a cluster TLS profile reached the webhook but not peerpod-ctrl.

This reads the same two variables in peerpod-ctrl, parses them with the webhook's rules — tlsconfig.go and its table test are copied unchanged from src/webhook — and passes the result as TLSOpts on the metrics server. Go's defaults still apply when both are unset. The chart gains tlsMinVersion / tlsCipherSuites with the same conditional env injection as the webhook chart, documented in the chart README. k8s.io/component-base moves from indirect to direct in go.mod; nothing else in the dependency graph changes.

Not in this PR: the operator injecting the variables for peerpod-ctrl the way it does for the webhook — that lives in the operator repo.

Testing: go test ./... in src/peerpod-ctrl (the copied TestParseTLSOptions table passes), GOOS=linux go vet ./..., make tidy-check, helm lint, and helm template --set tlsMinVersion=VersionTLS13 renders only TLS_MIN_VERSION.

Diff: 155 lines (+116 / -39) across 1 files Reviewer: david-long1 Review duration: 11876m
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.56) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.56 · 155 lines diff across 1 files
0.56
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
56%
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
Diff Size diff_size
0.302
Shallow Review Depth shallow_review_depth
0.289
Sensitive Paths sensitive_paths
0.056
Real PR Conversation Timeline
1 comments
"Review active on #3329"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 56.8% 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: 56.4% (MEDIUM) · Higher = larger blast radius
56.4%
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: 56.8% · Lower = rushed or shallow review
56.8%
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: 24.4% · Safe to merge
24.4%