← Back to Pull requests

AUTOSCALE-1069: approve CSRs of Karpenter-provisioned Azure nodes #76

Closed
unknown closed this pull request without merging on Nov 12, 2026 02:03 UTC
View on GitHub
unknown unknown commented on Nov 10, 2026 15:39 UTC
Author

Karpenter-provisioned Azure nodes needed manual CSR approval because the Azure provider had no NodeIdentityVerifier, so the machine approver was not enabled on Azure.

On Azure the node name equals the VM name, and Karpenter stores the VM resource ID as the NodeClaim provider ID. The verifier approves a node name only if a pending NodeClaim's provider ID points to a VM with that name in the configured subscription and node resource group. Unlike AWS, no cloud API call is needed since the name is part of the provider ID.

The second commit fixes a pre-existing gap in the shared controller. The kubelet submits its serving CSR before Karpenter sets NodeClaim.status.nodeName, which only happens once the Node's provider ID exists. The serving path looked up the NodeClaim by status.nodeName, found none, and dropped the CSR, so new nodes had no trusted kubelet serving certificate until the kubelet retried ~15 minutes later. The serving path now resolves the NodeClaim by provider ID like the client path, so the CSR is approved on first reconcile.

Verified on a live Azure hosted cluster

  • A new node registered with no manual approval. The client CSR was approved the second it was created and the node became Ready.

  • The real provider ID of a live NodeClaim matches the string the verifier builds exactly, including the lowercased resource group Karpenter writes.

  • CSRs stayed Pending for a name with no matching NodeClaim and for a NodeClaim whose status.nodeName is already set.

  • Serving CSR, pre-fix: created ~20s before status.nodeName was set, stayed Pending for 15 minutes until the kubelet resubmitted it. kubectl logs against pods on the node failed with remote error: tls: internal error during that window.

  • Serving CSR, post-fix: approved in the same second it was created, while the NodeClaim was still unregistered, with no stale CSR left behind.
  • Diff: 236 lines (+177 / -59) across 2 files Reviewer: linkvt Review duration: 2063m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 236 lines diff across 2 files
    0.37
    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.327
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #76"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    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: 37.2% (MEDIUM) · Higher = larger blast radius
    37.2%
    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: 14.7% · Safe to merge
    14.7%