Edge Agent

The Vorian Edge Agent runs on-premise inside the lab network. It captures analyzer traffic over MLLP and ASTM, buffers every message to local SQLite before acknowledging the instrument, and forwards results through an outbound-only mTLS tunnel — no inbound firewall ports required.

How It Works

What's Included

Where It Fits

The edge agent is the bridge between lab instruments and the Vorian cloud platform. It runs on a small Linux, macOS, or Windows machine inside the lab network — a repurposed workstation, a VM, or a dedicated mini-PC. It requires no inbound firewall rules, no VPN, and no changes to existing LIS or EHR configurations. The agent connects outbound to the Vorian gateway over a single TLS port, carrying all instrument traffic through one encrypted tunnel.

Each agent is associated with a single tenant. Multi-site labs deploy one agent per physical location, each reporting to the same cloud tenant with its own heartbeat and queue monitoring.

Technical Details (for evaluators)

The agent is a single Go binary — no Python, Java, or runtime dependencies. It embeds SQLite via modernc/sqlite (pure Go, no CGO required), so installation is a single binary copy. Message payloads are encrypted at rest in SQLite using envelope encryption with key versioning. Encryption failure aborts the enqueue — plaintext is never stored.

The mTLS tunnel uses TLS 1.3 with CA-signed leaf certificates generated by the gencerts utility. Certificate health is reported continuously: the agent classifies client and CA certificate lifetime (valid, warning at 90 days to expiry, expired, or unreadable/malformed) and reports it through the heartbeat, so the Topology page shows each agent's certificate status and days remaining. Certificate rotation is a staged operation — new material is validated against the real gateway with agent-preflight --network-only before the service is stopped, then the service restarts to load it, verifies again, and automatically restores the prior identity if verification fails. The client certificate and key rotate together while CA trust rotates separately; the operation never reads or requires the PHI encryption key, and prior material is retained for a bounded rollback window. An expired certificate fails preflight and keeps the production tunnel fail-closed while local encrypted buffering continues. The agent supports graceful shutdown in both run modes: in interactive mode it responds to SIGINT/SIGTERM and drains active connections before exit; as a Windows service it reports Service Control Manager lifecycle states and handles stop, shutdown, and pre-shutdown requests by draining in-flight work for up to 20 seconds while advancing SCM checkpoints every 2 seconds, keeping upgrades and uninstall bounded.

On Windows the service is configured to recover from unexpected exits with two 15-second restart attempts, then no further automatic action until the failure count resets after a day — bounding restart loops while surviving transient loss. Recovery also triggers on reported non-zero exits (not only process crashes) via the service failure-actions flag.

Routine software upgrades use Windows Installer major-upgrade semantics with stable components and NeverOverwrite, so a package update replaces the agent binaries and the authored recovery policy while carrying forward the installed site configuration and enrollment material — the tenant ID, PHI encryption key, gateway address and ports, and the CA/client certificates — and preserving buffered SQLite data. The upgrade preflight is blocking: if it fails (for example, a PHI-key digest mismatch), the transaction rolls back to the previously installed, still-running version.

Default MLLP listen address is :2575. The connection idle timeout is 30 minutes — instruments that go silent for longer than this are disconnected and must reconnect. The drain loop defaults to a 5-second interval and forwards messages in batches for efficiency.

Last updated: Sep 11, 2026