Prevent unvalidated cross-namespace dashboard RBAC grants #10716
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 576 lines diff across 7 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.380
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #10716"
general
weight: 0.35
lucferbux
Fixes: https://redhat.atlassian.net/browse/RHOAIENG-98918
Problem
The Dashboard CR can name arbitrary namespaces for notebooks and model-registry integration. The dashboard operator then grants its service account access to secrets and other namespaced resources in those targets without first establishing that the namespace consented to the grant.
Solution
dashboard.opendatahub.io/allow-namespaced-rbac=true, gated by the explicit--enforce-namespaced-rbac-consentmigration flag.NamespacedRBACConsentEnforced=Falsecondition reports the transition without masking workload health.Ready=False/Degraded=Truewith reasonNamespacedRBACFailedon failures.Rollout contract
The platform operator change that enables enforcement must update its chart configuration and
RELATED_IMAGE_ODH_DASHBOARD_OPERATOR_IMAGEtogether. A new image with older configuration remains in bounded legacy transition mode; enabling the new flag requires a compatible image, webhook, and at least one trusted writer. Once enabled, durable state prevents downgrade.Companion platform-operator PR: https://github.com/opendatahub-io/opendatahub-operator/pull/4329
Evidence
make test(controller coverage 84.1%, webhook coverage 85.9%)make lint(0 issues)make test-integration(race-enabled, 122.785s; includes a real Kubernetes 1.31 API-server test of the rendered ValidatingWebhookConfiguration and CEL match conditions)GOCACHE=/private/tmp/rhoaieng-98918-gocache make chart-validatea0347c66as digestsha256:beb44b577a45ca3c53c6688670bbcb0b3472ab1f143c821ecf380e14390b5f85to the local OpenShift 4.21 / RHOAI 3.5 cluster. Run 11 was cancelled after Docker Hub rate-limited its external builder-image pull; run 12 reused the internal Build 10 base and replaced the manager with the statically compiled binary from the exact commit.Ready=TrueandDegraded=False/NoDegradation, and reports the separate informational transition condition.no, retained the enforcement latch, and reportedNamespacedRBACFailedwhile the configured target lacked consent.