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.
Figure 1. A single DVARA LLM Gateway governs model traffic using configuration stored locally.
Enterprise Edition architecture
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
8080and 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.
| Path | What it governs | Important boundary |
|---|---|---|
LLM Gateway /v1/* | Model requests and responses | Chat, 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 operations | Runs 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 time | Runs 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 Flightdeck | Configuration, identity, operations, and evidence access | Enterprise 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:
- Identify the caller. DVARA requires an API key and resolves the key and its scopes to a workspace.
- 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.
- 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.
- Make one upstream call. DVARA translates the request for the selected provider and keeps provider credentials away from the calling application.
- 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.
- Record the outcome. With audit storage configured, a completed
/v1/*call writesGATEWAY_RESPONSE. Policy, PII, guardrail, MCP, A2A, and administrative workflows emit their own events when their documented conditions occur. DVARA does not emit a separateGATEWAY_REQUESTevent.
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:
| Action | Effect | Condition |
|---|---|---|
LOG | Record the detection without changing the content | Default action unless a workspace or global setting changes it |
BLOCK | Refuse content on the supported request or response path | Response behavior differs between non-streaming and streaming paths; see the PII guide |
REDACT | Replace the detected value irreversibly and store no original value | No token store or key material required |
TOKENIZE | Replace provider-bound request data with a reversible token | Requires 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
- Choose a deployment to select the Open Source distribution or Enterprise platform.
- Policy as Code for the first governance decision on the request path.
- LLM Gateway, MCP Gateway, and A2A Gateway for path-specific behavior.
- Configuration for supported public settings and defaults.
- Observability for health, metrics, traces, and audit evidence.