← Back to Pull requests

fix(data): use converted v2 lifecycle and connect Data Registry #10352

Closed
unknown closed this pull request without merging on Oct 21, 2026 20:38 UTC
View on GitHub
unknown unknown commented on Oct 20, 2026 15:09 UTC
Author

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:

  • v3 Data Registry child -> v2 spec.components.feastoperator.dataRegistry.managementState;

  • v3 Feature Store child -> v2 spec.components.feastoperator.managementState.
  • 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.managementState establishes enablement, not readiness. Both areas now require their own enabled lifecycle (Managed or Unmanaged, preserving existing area semantics) and FeastOperatorReady=True in the v2 DSC status.conditions. Missing condition arrays, or a missing, False, or Unknown readiness condition, keep the area unavailable. The guard uses the existing DSC customCondition hook; requiredCapabilities reads 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 was dial 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 the kube-rbac-proxy sidecar 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:

  • 443 covers the Service/ClusterIP connection port.

  • 8443 covers the backend pod connection port after Service translation.
  • 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-registry and pods matching both feast.dev/name: data-registry and feast.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-proxy serves 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.crt and includes it in --bundle-paths. Application startup loads the configured bundles alongside system roots into app.rootCAs.

    Previously, the registry reverse proxy constructed its outbound transport with NewTLSConfig(nil, ...), discarding that loaded pool. A nil RootCAs uses 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.rootCAs through DataRegistryProxyConfig.RootCAs into NewTLSConfig, 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 enable InsecureSkipVerify. 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

  • Readiness regression coverage in 93ad9876e: 85 focused frontend tests passed, including omitted DSC condition arrays for both data areas; the rendered-manifest test passed with scoped TCP 443 and 8443 assertions. The manifest URL exclusion was verified against the configured API URL. Root lint (41 tasks), root type-check (34 tasks), a final focused frontend type-check, Prettier, gofmt, and git diff --check passed.
  • Port follow-up: kustomize build manifests/modules/data-registry renders the scoped rule with TCP 443 and 8443; CGO_ENABLED=0 go test ./internal/controller -run '^TestDataRegistryManifestConnectivity$' -count=1 passed from dashboard-operator/.

  • TLS trust follow-up: CGO_ENABLED=0 go test ./internal/api -run '^TestDataRegistryProxy_VerifiesUpstreamTLS$' -count=1 -v passed all four trust/hostname cases from packages/data-registry/bff/.

  • Backend DSC normalization: 11 focused tests, including all four lifecycle combinations, missing fields, Unmanaged, and preservation of unrelated v2 statuses and Feast release data.

  • Frontend guard follow-up: 83 tests passed across utils.spec.ts, const.spec.ts, and AboutDialog.spec.tsx using 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.

  • Mocked Cypress: moduleFederationVisibility.cy.ts (14 tests) and workbenchFeatureStore.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.

  • Current frontend follow-up: root pnpm run lint (41 tasks) and pnpm run type-check (34 tasks) passed; host and Data Registry mocked frontend builds passed. git diff --check passed.

  • Earlier verification before the port follow-up: Dashboard operator and Data Registry BFF Go package suites, root type-check, lint, rendered module manifests, and git diff --check passed.

  • Read-only checks on the 3.6 RC cluster confirmed the v2 DSC endpoint, the target Service's port mapping, and the selected pod labels. No live cluster resources were changed for this update.
  • 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

  • New Features

  • - 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.

  • Bug Fixes

  • - 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 -->

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: briangallagher Review duration: 1768m
    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
    0.52
    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.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #10352"
    general weight: 0.35
    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: 52% (MEDIUM) · Higher = larger blast radius
    52%
    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: 20.5% · Safe to merge
    20.5%