← Back to Pull requests

fix(pipeline): allow kube-apiserver to reach the PipelineVersion admission webhook #3581

Closed
unknown closed this pull request without merging on Aug 23, 2026 22:53 UTC
View on GitHub
unknown unknown commented on Aug 12, 2026 13:44 UTC
Author

Fixes #3580

Problem


The ml-pipeline NetworkPolicy only allows ingress from kubeflow-profile namespaces and istio-system. This predates the K8s-native pipelines feature, where ml-pipeline itself serves the pipelineversions.pipelines.kubeflow.org mutating/validating admission webhooks on port 8443. Admission webhook calls come directly from kube-apiserver, which is not a pod and cannot be matched via podSelector/namespaceSelector, so those calls are silently dropped and time out — every PipelineVersion create/update fails while the parent Pipeline object (no webhook) succeeds:

failed calling webhook "pipelineversions.pipelines.kubeflow.org": failed to call webhook:
Post "https://ml-pipeline.kubeflow.svc:8443/webhooks/mutate-pipelineversion?timeout=30s":
net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

Fix


Add a port-only ingress rule for 8443 to common/kubeflow-namespace/base/kubeflow/ml-pipeline.yaml, matching the existing pattern already used by katib-controller, spark-operator-webhook, jobset-webhook and trainer-webhook — all of them scope their webhook port with a ports-only rule (no from), since the webhook's own TLS/CA is the actual trust boundary, not network segmentation.

Verification


Reproduced and bisected against a live cluster (see linked issue for full detail): confirmed kube-apiserver's network path to the ml-pipeline pod's webhook port hangs until timeout while identical traffic to pods without a NetworkPolicy succeeds instantly; after applying the equivalent live patch, the same request succeeds immediately and kubectl apply of a PipelineVersion succeeds.

Diff: 214 lines (+160 / -54) across 2 files Reviewer: juliusvonkohout Review duration: 16389m
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.60) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.60 · 214 lines diff across 2 files
0.60
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%
60%
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.321
Shallow Review Depth shallow_review_depth
0.289
Sensitive Paths sensitive_paths
0.060
Real PR Conversation Timeline
1 comments
"Review active on #3581"
general weight: 0.35
Assignees
Unassigned
Labels
risk: low confidence: 60.5% 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: 59.8% (MEDIUM) · Higher = larger blast radius
59.8%
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: 60.5% · Lower = rushed or shallow review
60.5%
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: 23.6% · Safe to merge
23.6%