openova/products
e3mrah 410ce2d394
fix(openova-flow-proxy): derive upstream URL from deployment FQDN (HTTPRoute) — Agent #8 (#1405)
Mothership catalyst-api serves /sovereign/api/v1/flows/{deploymentId}/* for
every Sovereign's user-facing job view, but the previous resolver only knew
about OPENOVA_FLOW_SERVER_URL (or the in-cluster Service DNS default). On
the mothership both fall back to a name the kernel can't resolve, so prov #34
hit:

  HTTP/2 502 openova-flow-server unreachable:
    Get "http://openova-flow-server.catalyst-system.svc.cluster.local:8080/v1/flows/.../snapshot":
    dial tcp: lookup openova-flow-server.catalyst-system.svc.cluster.local: no such host

Resolution order is now:

  1. OPENOVA_FLOW_SERVER_URL env override — wins (chroot catalyst-api).
  2. h.deployments.Load(deploymentId) → Request.SovereignFQDN → build
     `https://openova-flow.<sovereignFQDN>` (HTTPRoute pattern documented
     in platform/openova-flow-server/chart/values.yaml comment + the
     bootstrap-kit overlay clusters/_template/bootstrap-kit/56-bp-openova-
     flow-server.yaml which sets `hostname: openova-flow.${SOVEREIGN_FQDN}`).
  3. No deployment in store (and no env): return 404 instead of silently
     dialing a Service URL the mothership can't reach.

Canonical patterns cited (ARCHITECT-FIRST rule):
  - PDM-by-deploymentId lookup: deployments.go GetDeployment lines 1201-1216
    (h.deployments.Load(id) → (*Deployment).Request.SovereignFQDN). The
    chrootEnsureDeployment fallback (jobs.go lines 53-86) covers the
    chroot case; on the mother it returns nil and surfaces 404.
  - Self-signed TLS skip-verify: deployment_handover_export.go line 62
    (&tls.Config{InsecureSkipVerify: true} with nolint:gosec, gated by
    explicit operator opt-in). Gated here on
    OPENOVA_FLOW_TLS_SKIP_VERIFY=true so qa-loop Sovereigns minting
    LE-staging "Fake LE Intermediate X1" certs are reachable, while
    production stays strict.

SSE streaming logic is unchanged. Per docs/INVIOLABLE-PRINCIPLES.md #4
the only hostname literal added is the chart-documented prefix
`openova-flow.`; the FQDN suffix itself comes from the per-deployment
record at runtime.

Tests:
  - TestFlowProxy_EnvOverride_TakesPrecedence — chroot path
  - TestFlowProxy_DerivesURLFromDeploymentFQDN — mother path
  - TestFlowProxy_DerivedURL_NotFoundReturns404
  - TestFlowProxy_DerivedURL_EmptyFQDNReturns404
  - TestFlowProxy_DerivedURL_PathAssembly
All 15 TestFlowProxy_* tests pass (go test ./internal/handler -run TestFlowProxy).
go vet ./... clean. go build ./cmd/api clean. The two pre-existing
TestHandleWhoami_* failures on origin/main are unrelated.

Co-authored-by: e3mrah <1234567+e3mrah@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-11 17:32:08 +04:00
..
axon feat(axon): make qwen3-coder thinking mode toggleable via request parameter 2026-04-26 09:20:33 +02:00
catalyst fix(openova-flow-proxy): derive upstream URL from deployment FQDN (HTTPRoute) — Agent #8 (#1405) 2026-05-11 17:32:08 +04:00
continuum feat(continuum): F — dry-run report + post-switchover health check + audit-emit coverage (slice F-1+F-2+F-3, #1101) (#1161) 2026-05-09 08:33:37 +04:00
cortex docs(pass-52): bundled date-sweep + cross-component namespace clean; knative clean 2026-04-28 00:37:21 +02:00
dmz-vcluster fix: mark bp-dmz-vcluster + bp-netbird default-off for smoke-render gate (#1286) 2026-05-10 15:57:18 +04:00
fabric docs(seaweedfs+guacamole): replace MinIO with SeaweedFS as unified S3 encapsulation; add Guacamole to bp-relay 2026-04-28 10:23:46 +02:00
fingate docs(pass-52): bundled date-sweep + cross-component namespace clean; knative clean 2026-04-28 00:37:21 +02:00
openova-flow feat(openova-flow-adapter-flux): synthetic phase/region nodes + contains edges (Agent #6) (#1400) 2026-05-11 17:00:26 +04:00
relay docs(seaweedfs+guacamole): replace MinIO with SeaweedFS as unified S3 encapsulation; add Guacamole to bp-relay 2026-04-28 10:23:46 +02:00