fix: require all operator identities on cluster create #6969
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.47) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 498 lines diff across 6 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.372
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #6969"
general
weight: 0.35
miguelsorianod
https://redhat.atlassian.net/browse/ARO-29253
What
Cluster create is now rejected synchronously if it omits any operator identity the cluster
cannot come up without: 8 always-required control plane operators, 3 always-required data
plane operators, and
kmswhen etcd encryption isCustomerManaged. Requirements are readfrom
azure.ClusterScopedIdentitiesConfig, which already describes them.Operator names must also match a recognized operator exactly. A mis-cased or misspelled name
was previously accepted and then failed asynchronously.
Create-only, since
operatorsAuthenticationis immutable and running this on update wouldpermanently block clusters created before it existed.
Why
A customer created a cluster with customer-managed etcd encryption but omitted the
kmsidentity. ARM returned
201 Accepted, the create stalled indefinitely, and it took a Sev2 todiagnose.
The existing cross-check only compares the two customer-supplied identity lists against each
other — omit an operator from both and they stay consistent, so it passes. Nothing checked
completeness. Several downstream consumers assume the full set, including the role-assignment
and identity-sync controllers, and the failure surfaces as a stalled create rather than an
error.
Same request:
upstream/mainreturns201 Acceptedplus anAzure-AsyncOperationheader andpolls forever. This branch returns
400 InvalidRequestContentnaming the missing identity.Testing
Unit —
internal/validationdrops each of the 12 required identities in turn and assertsthe create is rejected for exactly that operator. Verified by mutation: neutering either
requirement loop fails these tests and nothing else.
Contract test —
internal/azure/cluster_scoped_identities_config_test.gopins the expectedoperator sets with hardcoded names, since validation and its fixtures both derive from the same
config and would otherwise only prove they agree with each other.
Integration — two new cases,
create-without-kms-identityandcreate-without-ingress-identity. Both were run againstupstream/mainwith only the testdirectory copied in; they fail there with
An error is expected but got niland pass here,confirming they detect the defect rather than just agreeing with the new code.
No new E2E tests — the E2E framework already supplies all 12 identities.
Special notes for reviewer
Names are rejected, not normalized.
"KMS"could be lowercased so it just works, butthat's a silent mutation — you PUT
"KMS"and GET"kms"back. Strict-to-lenient is safe toloosen later; the reverse isn't. Happy to switch if you'd prefer.
CI is red for infrastructure reasons, not this change. All Prow jobs are failing to
schedule with
nonretryable error: no build client found for cluster "build11"/"build13". Will retest once CI is healthy.Two gaps left out of scope:
serviceManagedIdentityhas no requirement metadata tovalidate against, and the
MaximumSet_Gen.jsonexamples (10 files across 5 API versions)show empty operator maps, so they now document a request the RP rejects.
PR Checklist