Velaris runs as a small set of services behind a single API gateway. A React frontend talks to one public entrypoint — the gateway — which routes each path prefix to the service that owns it: case-service for the application core, and three services split out of it for analytics, the knowledge graph and migration. A separate Python flow engine runs durable workflow execution. PostgreSQL and Valkey back them, with Temporal, OpenBao, MinIO, and Ollama as supporting infrastructure.
| Service | Port | Runtime | Responsibility |
|---|---|---|---|
| studio | 5173 | Vite + React 18 + TypeScript | All portal UIs — Customer, Agent Desk, Manager Dashboard, Admin Studio |
| api-gateway | 8200 | nginx | The single public entrypoint. Terminates external traffic and routes each /api/v1/* prefix to its owning service. The client-facing paths never changed when services were split out — that is what the gateway is for. |
| case-service | 8201 (loopback) | Python 3.12 / FastAPI | The application core: authentication & SSO, case CRUD, workflow, SLA, HxNexus AI, and every module API not owned by a service below (HxConnect, HxSync, HxShield, HxFusion, HxDeploy). Bound to loopback — reachable only through the gateway. |
| analytics-service | 8202 (loopback) | Python 3.12 / FastAPI | /api/v1/analytics and /api/v1/process-mining: aggregate queries, saved reports, exports, variant and bottleneck analysis. Holds its own connection pool so read-heavy work does not compete with the case lifecycle. |
| hxgraph-service | 8203 (loopback) | Python 3.12 / FastAPI | /api/v1/graph: graph sync, natural-language query, path finding, impact analysis, report, export and the interactive visualizer. |
| hxmigrate-service | 8204 (loopback) | Python 3.12 / FastAPI | The migration domain: /api/v1/hxmigrate, /importer, /scout, /scout-ai and /orchestrator — scan a legacy system, import its definitions, plan the move and create the case types. |
| flow-engine | 127.0.0.1:8100 | Python 3.12 / FastAPI | Durable workflow / process execution and the Temporal worker. |
| postgres | 5432 | PostgreSQL 16 + pgvector | Primary data store for all services. |
| valkey | 6379 | Valkey 8 | Session cache, SSE pub/sub for HxStream, rate limiting. |
| broker-gw | 172.31.101.1:8210 (edge) | nginx | Marketplace Layer 2. The only data path for app containers — scoped, read-only, tenant-pinned, token hash-authenticated, revocable, audited as broker://. |
| egress-gw | internal | CONNECT proxy | Marketplace Layer 2. The only outbound path for app containers, and only to admin-granted domains. Off by default. Per-container credentials rotated on each start; audited as egress://. |
.env at startup); document storage on local disk by default, or an S3-compatible endpoint you supply; Ollama (:11434) as the local AI model backend for HxNexus. Only Studio (:5173) is reachable from another machine; the gateway (:8200), the case service (:8201) and the engine (:8100) bind 127.0.0.1, and every container port in compose is published loopback-only so Docker cannot open a hole around the firewall.
In v3.2.0. An install taking that update keeps its behaviour unless noted; anything that turns something on applies to a new install only.
latest; versions are raised deliberately, each release, after scripts/check-image-versions.sh.VELARIS_CASE_EVENT_BUS_ENABLED, off by default), requires a password (SASL), and listens on the host loopback only. An update removes a leftover Redpanda container; its data volume is left for you.VELARIS_EXTERNAL_SERVICES=database,temporal,ai,meetings,events (any subset; unset = all on this box). A listed part must be encrypted and authenticated — database TLS, Temporal mutual TLS, Kafka SASL_SSL, Ollama over https behind a proxy that checks a key, LiveKit over wss — or start refuses and names what is missing. Its bundled container is stopped; its data volume is kept.The ports above are defaults, not constants. Every one of them can be moved by an install whose machine already uses that number — the gateway's upstreams, the launch commands and the systemd units all read the same table at deploy/ports/velaris-ports.sh, so nothing repeats a literal.
| Variable | Default | Service |
|---|---|---|
VELARIS_CASE_SERVICE_PORT | 8200 | api-gateway |
VELARIS_ENGINE_PORT | 8100 | flow-engine |
VELARIS_CASE_PORT | 8201 | case-service |
VELARIS_ANALYTICS_PORT | 8202 | analytics-service |
VELARIS_HXGRAPH_PORT | 8203 | hxgraph-service |
VELARIS_HXMIGRATE_PORT | 8204 | hxmigrate-service |
VELARIS_STUDIO_PORT | 5173 | studio |
Both the installer and the updater check before anything binds. setup-velaris.sh preflights all seven before Docker, the database or any file is touched, and offers an alternative when one is taken. update-velaris.sh preflights too and halts before changing anything — but never prompts and never reassigns, because it runs unattended on a timer.
The check answers three ways rather than two: free, held by Velaris itself (expected — the platform is running while an update runs), or held by something else, which it names. When it cannot determine the owner it says so and still blocks; guessing “free” is the answer that ends in a half-installed platform.
The same applies one layer down: an update syncs Python and Node dependencies and pulls container images, but cannot install an operating-system package. deploy/deps/velaris-deps.sh lists the binaries the platform needs, the installer reads that list rather than keeping its own copy, and the updater halts with the exact install command instead of running a package manager unwatched on someone else’s server.
Workload identity answers did this request come through the gateway? Every service binds loopback, but loopback is a network boundary and not an identity — any other process on the host could open a service port and reach an authenticated API. The gateway injects a shared credential and each service refuses anything without it. Health, readiness and metrics stay exempt so supervisors and scrapes keep working. It is inert until configured, so an upgrade cannot switch enforcement on unattended.
Internal mTLS answers a different question — is the thing on the other end who it claims to be, and can anyone read the traffic? — and ships off. On a single host every service talks over loopback behind a loopback-only gateway; there is no wire to listen on, and the cost is a certificate authority you operate forever. It becomes the right answer the moment a service moves to another host, which is why the certificate authority, the per-service certificates and the rotation timer are built and tested rather than designed later under pressure.
The two are independent: a caller holding a valid client certificate but no identity credential is still refused. Encryption is not authorization.
Everything the services share — settings, the ORM models and session factories, the identity model, the HxGuard decision point, the middleware stack and the LLM core — lives in one installable package that each service depends on. Nothing in it may import an application; that rule is enforced by a test, and it is what keeps a service split cheap.
services/_shared/velaris_shared/ ├── config.py # pydantic-settings — every env var lives here ├── db/ # SQLAlchemy models, sessions, per-dialect backends ├── auth/ # JWT, devices, WebAuthn, identity dependencies ├── hxguard/ # The authorization decision point + action catalogue ├── middleware/ # Audit, rate limit, body limit, security headers ├── observability/ # Logging, metrics, tracing ├── app.py # The shared middleware stack + JSON error contract ├── llm/ # Provider backends, egress guard, egress audit ├── analytics/ process_mining/ hxgraph/ # Query libraries shared with their services └── core/ # error codes, PII redaction, the module catalogue services/analytics-service/ services/hxgraph-service/ services/hxmigrate-service/ # One package each: main.py + api/routers/ + tests/. They depend on # velaris_shared and never import case_service.
services/case-service/case_service/ ├── main.py # FastAPI app, all router mounts ├── schemas/ # Pydantic v2 request/response schemas ├── api/routers/ # ~95 routers — one per module │ ├── cases.py # /api/v1/cases/* │ ├── auth.py auth_real.py # /api/v1/auth/* │ ├── hxnexus.py # HxNexus AI, incl. case-scoped Q&A │ ├── hxmcp.py # /api/v1/mcp — HxNexus Operator │ ├── marketplace.py # Installs, grants, containers │ ├── broker.py # Scoped read-only broker for L2 apps │ ├── meet.py kyc.py # HxMeet sessions, recordings, KYC │ ├── hxreplay.py # Counterfactual replay │ ├── costing.py # Rate cards, timers, billing export │ ├── hxevolve.py # Process drift detection + proposals │ ├── hxdraft.py # Draft-first configuration │ ├── hxdbmigrate.py # Legacy DB migration │ ├── portal.py portal_customers.py messages.py │ ├── case_variables.py # Case Variables v2 │ └── ... # hxguard, hxlogs, hxcanvas, hxtest, checkout, … ├── marketplace/ # Grants, runtime, egress host-filter ├── engine/ │ ├── workflow.py # Stage transition + step completion logic │ ├── sla.py # SLA clock, pause/resume, breach detection │ ├── graph_engine.py # HxGraph builder + pgvector sync │ ├── fusion.py # HxFusion rule evaluation │ └── shield.py # HxShield risk scoring background task └── tests/ # Phase-scoped suites, SQLite + PostgreSQL migrations/postgresql/ # Plain .sql, 0001 > 138 (repo root) migrations/mysql/ # Frozen baseline (PG 001 > 154) + seeds + 155 onward
studio/src/ ├── portals/ │ ├── customer/ # Customer Portal (/portal) │ ├── agent/ # Agent Desk (/agent) │ ├── manager/ # Manager Dashboard (/manager) │ └── studio/ # Admin Studio (/) ├── modules/ │ ├── hxnexus/ # AI assistant panel │ ├── hxstream/ # Activity feed (SSE) │ ├── hxwork/ # Kanban + sprint board │ ├── hxbranch/ # Version control UI │ ├── hxgraph/ # D3.js force graph + browse │ ├── hxconnect/ # Integration suite tabs │ ├── hxanalytics/ # BI dashboard │ ├── hxdeploy/ # Deployment swimlane │ ├── hxmigrate/ # BPM migration UI │ ├── hxdbmigrate/ # Legacy database migration │ ├── hxfusion/ # Adaptive execution rules │ ├── hxshield/ # Fraud detection + review queue │ ├── hxreplay/ # Counterfactual replay + costing │ ├── hxcanvas/ # Whiteboard │ ├── hxdocs/ # Auto-documentation │ ├── hxlogs/ # Log explorer │ ├── hxdbmanager/ # Database administration │ ├── hxtest/ # Test Suite + HxTest app │ ├── hxcheckout/ # Checkout flows │ ├── hxstorefront/ # Storefront admin + public pages │ ├── marketplace/ # App browse, install, grants │ ├── process-mining/ # Variants, bottlenecks, HxEvolve insights │ ├── compliance/ # Certificates + audit anchors │ └── portal/ # Portal v2 configuration ├── components/ # Shared UI components ├── hooks/ # React hooks ├── stores/ # Zustand state stores ├── api/ # API client functions (typed) └── branding.ts # Theme + branding tokens
| Layer | Technologies |
|---|---|
| Frontend | React 18, TypeScript 5, Vite 5, TailwindCSS, D3.js, Zustand |
| Backend | Python 3.12, FastAPI, SQLAlchemy 2, Pydantic v2, plain SQL migrations |
| AI | AI API (configured model), embedding model / pgvector |
| Database | PostgreSQL 16 with pgvector (default); MySQL / MariaDB also supported |
| Realtime media | LiveKit (optional, for embedded HxMeet video and screen share) |
| App isolation | Docker with digest-pinned images, internal networks, CONNECT egress proxy |
| Cache / Realtime | Valkey 8 (pub/sub for SSE streams) |
| Auth | JWT RS256 (RSA-2048), bcrypt, WebAuthn passkeys, SSO SAML/OIDC; secrets via OpenBao |
| Dev tooling | uv (Python pkg mgr), ruff (linter), pyright, vitest, playwright |
token_use=mcp and is rejected platform-wide by the normal user lookup. It works only against the Operator surface, only within its granted scope, and can be revoked instantly.