← Back to Pull requests

feat: add containerRegistry to ARM API for ACR pull via managed identity (ARO-24037) #5562

Closed
unknown closed this pull request without merging on Sep 24, 2026 20:09 UTC
View on GitHub
unknown unknown commented on Jun 08, 2026 21:43 UTC
Author

Summary

Add properties.platform.containerRegistry.managedIdentity to the v20261001preview ARM API, allowing customers to configure a user-assigned managed identity for worker node ACR image pulls.

ARO-24037

What changes

  • ARM API: ContainerRegistryProfile on PlatformProfile (v20261001preview). Day-2 mutable via PATCH. Set, change, or clear (null).

  • Admission: OCP >= 4.22 version gate.

  • Validation: Resource type check, managed resource group rejection, struct-level platform immutability preserved.

  • Backend: ContainerRegistryPullCredentialsPermissionValidation — checks CAPZ has assign/action on the MI.

  • Dispatch + CS conversion: Wired through clusterUpdateDispatchConfig for day-2 updates and clearing.

  • Cross-version preservation: Older API versions preserve the field through round-trips.
  • Testing

  • E2E (v20261001preview, skips until deployed): Create cluster with MI → pull from private ACR → day-2 update to different MI → verify pull with new MI.

  • Integration: PATCH to add containerRegistry, PATCH null to clear. Declarative artifact tests with v20261001preview.

  • Unit: Validation (create, update, clear, wrong type, same-MRG), admission version gate (4.17/4.21/4.22), backend permission validation (9 scenarios), OCM conversion round-trip, dispatch config, immutability enforcement for all platform fields.
  • Companion changes

  • HyperShift CPO backport (openshift/hypershift#9211)

  • OCM model (#1164)

  • Clusters Service
  • Diff: 197 lines (+147 / -50) across 2 files Reviewer: patilsuraj767 Review duration: 155426m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 197 lines diff across 2 files
    0.36
    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.316
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #5562"
    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: 36.1% (MEDIUM) · Higher = larger blast radius
    36.1%
    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.3% · Safe to merge
    14.3%
    Repository