peerpod-ctrl: honour the cluster TLS profile on the metrics server #3329
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
david-long1
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_SUITESand 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.goand its table test are copied unchanged fromsrc/webhook— and passes the result asTLSOptson the metrics server. Go's defaults still apply when both are unset. The chart gainstlsMinVersion/tlsCipherSuiteswith the same conditional env injection as the webhook chart, documented in the chart README.k8s.io/component-basemoves from indirect to direct ingo.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 ./...insrc/peerpod-ctrl(the copiedTestParseTLSOptionstable passes),GOOS=linux go vet ./...,make tidy-check,helm lint, andhelm template --set tlsMinVersion=VersionTLS13renders onlyTLS_MIN_VERSION.