feat: add proxy_ssl_context to Configuration for a separate proxy TLS context #2658
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.59) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.59 · 179 lines diff across 2 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.311
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.059
Real PR Conversation Timeline
1 comments
"Review active on #2658"
general
weight: 0.35
roycaihw
Fixes #2387.
Configurationgainsproxy_ssl_context: Optional[ssl.SSLContext] = None, passed through tourllib3.ProxyManagerinRESTClientObject. This lets the HTTPS proxy's TLS cert be validated independently of the destination (K8s API server) settings - the "HTTPS Proxy + HTTPS Destination" scenario urllib3 already supports natively.kubernetes/clientis generated from kubernetes-client/gen; companion PR kubernetes-client/gen#308 adds the same patch there. This PR applies it to the already-generated files so it's usable now.Verification:
kubernetes/e2e_test/test_issue_2387_proxy_ssl_context.pyspins up a mock HTTPS proxy and destination server with independent self-signed CAs (no live cluster needed). Withoutproxy_ssl_context: fails withCERTIFICATE_VERIFY_FAILED. With it set to trust the proxy's CA: succeeds, destination still validated separately.<img width="728" alt="test report: both scenarios passing, with captured CERTIFICATE_VERIFY_FAILED log for the without-fix case" src="https://github.com/user-attachments/assets/2cca650a-4060-4301-be28-3a3560aa3ccb" />
``
release-noteproxy_ssl_contextAdded
toConfiguration, letting users provide a separate SSL context for HTTPS proxy TLS verification, independent of the destination TLS settings.
``