Skip to main content
Version: 1.14.0

DVARA Architecture

DVARA has two deployment architectures. The Open Source edition provides a standalone LLM Gateway for model traffic. The Enterprise edition adds MCP and A2A traffic and centralized management.

Open Source architecture​

Open Source uses one LLM Gateway process with local file configuration and no database dependency. The Gateway reads gateway.yaml when it starts, so configuration updates require a restart.

DVARAOpen Source distributionAI appsOpenAI clientDVARA LLM GatewayGoverned /v1 callsPolicy and auditModel providersone upstream callgateway.yamloptional audit fileEnterprise platformApps and agentsmodel, tool, agent callsDVARA Gateway Runtime · port 8080LLM Gateway/v1MCP Gateway/mcpA2A Gateway/a2alocal SQLite spool · saved signed bundleDestinationsmodel providersMCP serverspeer agentsGateway Control PlaneDVARA Flightdeck · port 8090PostgreSQLGateway Control Plane only

Figure 1. A single DVARA LLM Gateway governs model traffic using configuration stored locally.

Enterprise Edition architecture​

Apps and agentsmodel · tool · agent callsDVARA Gateway Runtime · port 8080LLM Gateway/v1MCP Gateway/mcpA2A Gateway/a2alocal SQLite · verified signed bundleDestinationsmodels · tools · agentsdeclared backends onlyGateway Control PlaneDVARA Flightdeck · port 8090PostgreSQLcontrol-plane data onlysigned bundlesevidence and status

Figure 2. Enterprise keeps PostgreSQL behind Gateway Control Plane. Gateway Runtime handles AI traffic without a database connection.

The Enterprise edition has two deployable application services:

  • DVARA Gateway Runtime listens on port 8080 and serves the LLM, MCP, and A2A paths from one process. You scale this service with request traffic.
  • Gateway Control Plane (DVARA Flightdeck) listens on port 8090. Platform and workspace roles use it to change configuration and inspect evidence; AI calls do not pass through it.

Gateway Control Plane stores configuration and evidence in PostgreSQL and is the only application that connects to it. A Gateway Runtime pod enrols with Flightdeck, serves a verified configuration bundle, and spools evidence in its own SQLite store before shipping it to Gateway Control Plane. See How Gateway Runtime runs without a database.

Traffic paths

The three Gateway paths share identity, workspace boundaries, and governance concepts. They do not run one identical filter chain.

PathWhat it governsImportant boundary
LLM Gateway /v1/*Model requests and responsesChat, Responses, completions, and text embeddings use the live model-call path. File upload, model discovery, batches, batch results, and budget estimation each have narrower contracts.
MCP Gateway /mcp and /mcp/{serverId}/*Native tool discovery and calls, plus the earlier server-scoped REST operationsRuns only in the Enterprise Gateway, with or without a licence. A governed tools/call passes through tool policy, PII, approval, loop, and audit controls. Native /mcp also serves resources, prompts, and completions from the workspace's servers, through the same governance as a tool call.
A2A Gateway /a2a/*Messages, streams, and task operations for one registered peer at a timeRuns only in the Enterprise Gateway, with or without a licence. Every operation authenticates, resolves the workspace-scoped peer, applies its documented policy, and records evidence. PII, approval, loop, and streaming controls differ between message and task operations.
Flightdeck FlightdeckConfiguration, identity, operations, and evidence accessEnterprise browser traffic. It is not part of the model, MCP, or A2A request path; the former Automation API was removed in 1.7.0.

See the endpoint-by-endpoint LLM contract, MCP Gateway, and A2A Gateway before assuming that a control applies to a particular operation.

Synchronous model-call flow

For a supported synchronous chat, Responses, completion, or text-embedding request, the useful mental model is:

  1. Identify the caller. DVARA requires an API key and resolves the key and its scopes to a workspace.
  2. Evaluate request controls. Configured policy, request limits, rate limits, PII controls, and guardrails decide whether to allow, change, or refuse the request. Enterprise cost and budget controls run when their dependencies and workspace settings are configured.
  3. Choose a capable destination. DVARA matches the route, removes providers that do not declare the requested capability, and applies a routing strategy available in that deployment.
  4. Make one upstream call. DVARA translates the request for the selected provider and keeps provider credentials away from the calling application.
  5. Govern the result. Configured response controls inspect or change a non-streaming result before it reaches the caller. A withholding control on a stream defers delivery until DVARA can decide on the complete response.
  6. Record the outcome. With audit storage configured, a completed /v1/* call writes GATEWAY_RESPONSE. Policy, PII, guardrail, MCP, A2A, and administrative workflows emit their own events when their documented conditions occur. DVARA does not emit a separate GATEWAY_REQUEST event.

This sequence is not the contract for every /v1/* operation. A provider batch, for example, does not run each JSONL line through the live chat pipeline. Read Govern model calls through the LLM Gateway for those boundaries.

PII enforcement

PII controls can run before an upstream call and on returned content. Their effect depends on the configured action:

ActionEffectCondition
LOGRecord the detection without changing the contentDefault action unless a workspace or global setting changes it
BLOCKRefuse content on the supported request or response pathResponse behavior differs between non-streaming and streaming paths; see the PII guide
REDACTReplace the detected value irreversibly and store no original valueNo token store or key material required
TOKENIZEReplace provider-bound request data with a reversible tokenRequires the Enterprise token store and usable key material; unavailable in the Open Source distribution

New PII detected in a response is removed irreversibly under both REDACT and TOKENIZE. Optional response detokenization restores only tokens created from the incoming request on the supported non-streaming round trip, and it is off by default. See PII governance for the exact request, response, stream, MCP, and A2A behavior.

Optional external detectors and Enterprise tokenization run only when the required Enterprise components and configuration are present.

Control-plane outage behavior

From 1.8.2 a Gateway Runtime pod serves its last verified signed bundle and writes audit and telemetry to its local spool, so it keeps serving through a Flightdeck or PostgreSQL outage. Its records ship to Gateway Control Plane when it is back. Configuration changes and revocations issued during the outage wait until then. Earlier releases connected Gateway Runtime pods to PostgreSQL by default, which made the database part of the request path's availability.

The Open Source distribution has no Gateway Control Plane to lose. It continues to use the gateway.yaml loaded at startup and the configured local audit destination.

Further reading