fix: explain delayed permission grants without delaying cluster failure #7548
All Vouch review confidence checks passed
Residual risk 0.31 = Change Risk (0.71) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.71 · 501 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
Sensitive Paths
sensitive_paths
0.071
Real PR Conversation Timeline
1 comments
"Review active on #7548"
general
weight: 0.35
miguelsorianod
ARO-30179
Why
A recent Azure role grant can be visible before CheckAccess evaluates it as effective. Customers then see “missing permissions” for actions they believe they have granted. The validation should distinguish a plausible propagation delay from a missing grant, without holding genuinely misconfigured operations until their overall completion deadline. ARO-30179's corrected investigation did not establish a 46-minute propagation tail on this validation path; do not treat that figure as the basis for the failure timeout.
Behavior
principalId eqfilter is encoded before transmission. One paginated subscription-scope list is reused per principal per validation run; assignment and scope matching is local. Control-plane principal IDs come fromServiceProviderCluster.status.managedIdentityDetails' ARM source (never the lower-environment MI mock); if this source is missing or reports an error, guidance is omitted without extra identity GETs. Data-plane validation reuses its already-resolved principal IDs.RoleAssignmentPropagationPending, with missing-action details, the newest relevant assignment time, and conditional wait/retry advice. Rechecks run after 30 seconds so a grant that becomes effective inside the failure window can recover. Other missing grants remain ordinary Failed. All assignment/role lookup errors are logged and counted and retain the ordinary Failed result; diagnostic lookup errors cannot reset the failure timer.Verification and operational signals
Unit tests cover scope/age/deny/action matching, unrelated grants, pagination, lookup errors, operation age, and the actual SDK HTTP filter; affected backend packages pass
go test -raceand lint locally.backend_cluster_validation_rbac_propagation_detections_total,_lookup_errors_total,_lookup_forbidden_total, and_window_expired_totaldistinguish guidance from inaccessible or expired evidence. The generated controller-data-flow reference is left to its separate bot update. Localmake verifyis blocked by unrelated config-materialization drift; CI on the new head is required.Dependencies and limitations
Merge #7547 first and rebase this PR to resolve the shared operation-controller test thresholds. The real first-party identity’s effective ability to list customer-subscription role assignments and read customer-scoped role definitions is not established by repository grants, mock-identity e2e tests, or an operator’s Azure login. A 403 leaves ordinary missing-permissions failure intact and increments the forbidden metric; this guidance requires confirmation with the real FPA against a customer-owned scope before production enablement. Role membership through groups and conditional grants are not assumed to be propagation evidence. Neither this PR nor #7547 changes the overall cluster-operation deadline.