fix(data): use converted v2 lifecycle and connect Data Registry #10352
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 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.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #10352"
general
weight: 0.35
briangallagher
Fixes: https://redhat.atlassian.net/browse/RHAI-13636
Problem
RHOAI 3.6 models Data Registry and Feature Store as independent v3 DSC children. The dashboard must not treat shared Feast/Data status, or one child, as the other's availability. Data Registry also needs a reachable HTTPS backend.
Solution
Keep the main dashboard DSC request on v2. The operator's v3-to-v2 conversion already exposes the independent states in the converted v2 spec:
The backend derives only the dashboard's independent dataRegistry and featureStore lifecycle keys from those fields. Missing states become Removed. It preserves the existing v2 status keys, including status.components.feastoperator and its shared Feast release metadata, and leaves unrelated DSC readers untouched. The dashboard operator gates Data Registry on the independent dataRegistry projection from operator #4241. The existing dataRegistry, disableFeatureStore, and featureStoreAdmin flags retain their roles.
Enablement and operator readiness
Per-child
spec.managementStateestablishes enablement, not readiness. Both areas now require their own enabled lifecycle (ManagedorUnmanaged, preserving existing area semantics) andFeastOperatorReady=Truein the v2 DSCstatus.conditions. Missing condition arrays, or a missing, False, or Unknown readiness condition, keep the area unavailable. The guard uses the existing DSCcustomConditionhook;requiredCapabilitiesreads DSCI conditions and is not the appropriate hook for this DSC condition.Feature Store admin inherits the Feature Store guard. The federated Data Registry area depends on a guarded internal Data Registry area, so remote area registration cannot bypass the host's lifecycle/readiness checks. Each child's enablement remains independent even though the readiness condition is shared.
This proves shared operator readiness only. It does not establish individual backend health or BFF reachability; that remains a separate health signal. Data Connect Hub (DCH) is a separate component and its availability behavior is unchanged. The merged operator #4241 supplies the independent Data Registry projection used by the dashboard operator's module gate.
The following table assumes
FeastOperatorReady=True; either UI remains unavailable when that shared condition is missing, False, or Unknown:| v3 Data Registry | v3 Feature Store | Data Registry UI | Feature Store UI |
| --- | --- | --- | --- |
| Managed | Removed | Available if dataRegistry is enabled | Unavailable |
| Removed | Managed | Unavailable | Available if disableFeatureStore is false |
| Removed | Removed | Unavailable | Unavailable |
| Managed | Managed | Available if enabled | Available if enabled |
NetworkPolicy and HTTPS endpoint
The BFF connects to
https://feast-data-registry-data-registry.rhoai-data-registry.svc:443. The reported runtime failure wasdial tcp 172.30.21.202:443: i/o timeout; read-only cluster checks confirm that this is the registry Service's ClusterIP and that its HTTPS port 443 forwards to thekube-rbac-proxysidecar on pod port 8443. The operator-generated ConfigMap now uses that Service URL.The deployed operator-managed NetworkPolicy lacks an explicit allow rule to the Data Registry pods in the other namespace. This PR adds that rule with both TCP ports:
The evidence establishes the missing cross-namespace rule, but does not independently establish whether this cluster requires both ports or only 8443. Allowing both is a small compatibility extension for either NetworkPolicy port evaluation point. The destination remains restricted to namespace
rhoai-data-registryand pods matching bothfeast.dev/name: data-registryandfeast.dev/service-type: data-registry; the rule adds no broader destination access. A rendered-manifest test guards the Service URL and scoped access on both TCP 443 and 8443. The manifest URL-validation exclusion and local port-forward instructions use the same Service endpoint.Upstream TLS certificate trust
The registry's
kube-rbac-proxyserves HTTPS using an OpenShift service-serving certificate. The BFF deployment already mounts the service CA bundle at/var/run/secrets/kubernetes.io/serviceaccount/service-ca.crtand includes it in--bundle-paths. Application startup loads the configured bundles alongside system roots intoapp.rootCAs.Previously, the registry reverse proxy constructed its outbound transport with
NewTLSConfig(nil, ...), discarding that loaded pool. A nilRootCAsuses system trust only, which does not necessarily include the cluster's private service CA. Consequently, even after network access is allowed, the upstream HTTPS connection can fail certificate verification.This PR passes
app.rootCAsthroughDataRegistryProxyConfig.RootCAsintoNewTLSConfig, so the registry connection uses the configured cluster trust. Certificate-chain and hostname verification remain enabled in the operator-managed deployment; TLS 1.2 remains the minimum, and the change does not enableInsecureSkipVerify. The regression test verifies that a trusted upstream succeeds, untrusted certificates are rejected, and a hostname mismatch is rejected even with a trusted CA. The reported TCP timeout establishes a reachability failure; it is not evidence of a TLS handshake failure. The TLS rationale is supported separately by the certificate configuration, the missing CA wiring in the old code, and these tests.Evidence
git diff --checkpassed.kustomize build manifests/modules/data-registryrenders the scoped rule with TCP 443 and 8443;CGO_ENABLED=0 go test ./internal/controller -run '^TestDataRegistryManifestConnectivity$' -count=1passed fromdashboard-operator/.CGO_ENABLED=0 go test ./internal/api -run '^TestDataRegistryProxy_VerifiesUpstreamTLS$' -count=1 -vpassed all four trust/hostname cases frompackages/data-registry/bff/.utils.spec.ts,const.spec.ts, andAboutDialog.spec.tsxusing Jest--runInBand --runTestsByPath. Coverage includes independent child lifecycle, Managed/Unmanaged, readiness True/False/Unknown/missing, missing DSC status, and rejection of unrelated DSC/DSCI readiness signals.moduleFederationVisibility.cy.ts(14 tests) andworkbenchFeatureStore.cy.ts(17 tests), 31 passed with Electron against the locally built host and remotes. Checks cover enabled/removed child navigation and route access, shared operator readiness, Feature Store admin inheritance, and workbench Feature Store behavior.pnpm run lint(41 tasks) andpnpm run type-check(34 tasks) passed; host and Data Registry mocked frontend builds passed.git diff --checkpassed.This does not claim verification of the exact 3.6 GA CRD/build or a live end-to-end DSC -> Dashboard projection -> module-status run. That integration test remains a separate follow-up. The dashboard relies on the GA build continuing to serve the converted v2 DSC API.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
- Feature Store and Data Registry availability are now tracked independently.
- Data Registry connectivity supports its updated service endpoint and trusted cluster certificates.
- Shared release information remains available when either component is managed.
- Corrected Data Registry lifecycle and availability handling across dashboard modules.
- Feature Store and Data Registry pages remain unavailable when their component is removed or operator readiness is not confirmed.
- Improved Data Registry proxy security by validating upstream TLS certificates.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->