← Back to Pull requests

feat: add proxy_ssl_context to Configuration for a separate proxy TLS context #2658

Closed
unknown closed this pull request without merging on Aug 11, 2026 03:06 UTC
View on GitHub
unknown unknown commented on Jul 30, 2026 00:32 UTC
Author

Fixes #2387.

Configuration gains proxy_ssl_context: Optional[ssl.SSLContext] = None, passed through to urllib3.ProxyManager in RESTClientObject. 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/client is 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.py spins up a mock HTTPS proxy and destination server with independent self-signed CAs (no live cluster needed). Without proxy_ssl_context: fails with CERTIFICATE_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-note
Added
proxy_ssl_context to Configuration, letting users provide a separate SSL context for HTTPS proxy TLS verification, independent of the destination TLS settings.
``

Diff: 179 lines (+134 / -45) across 2 files Reviewer: roycaihw Review duration: 17434m
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
0.59
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.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
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: 58.7% (MEDIUM) · Higher = larger blast radius
58.7%
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: 25.4% · Safe to merge
25.4%