Security & Multi-Tenancy

Vorian Connect is built for multi-tenant lab environments where data isolation is non-negotiable. Every database table is protected by PostgreSQL Row-Level Security. Patient identifiers are pseudonymised before storage. Authentication uses Zitadel OIDC with short session timeouts. All admin actions are audited.

How It Works

What's Included

Where It Fits

Security controls span the entire Vorian Connect pipeline. At the edge, SQLite encryption protects buffered messages on the lab machine. In transit, mTLS 1.3 secures the agent-to-gateway tunnel. At rest in PostgreSQL, RLS enforces tenant boundaries and MRNs are pseudonymised. At the application layer, RBAC controls what each user can see and do. In the audit trail, every admin action is logged for compliance review.

For multi-site hospital networks and reference labs serving multiple clients, tenant isolation means each lab's data is invisible to every other lab — even to users with database access. The RLS policies are the hard gate; no application-layer logic can accidentally bypass them.

Technical Details (for evaluators)

RLS policies follow the pattern: tenant_id = current_setting('app.tenant_id')::uuid. The app.tenant_id session variable is set at connection time via SET LOCAL within a transaction. This means RLS is active for the duration of every dashboard API request and reset between requests — no cross-request tenant leakage.

PHI pseudonymisation uses HMAC-SHA256 with a key shared across all services (gateway, dashboard, reprocessor). The key is never exposed to the edge agent. GDPR erasure (DELETE /api/patient) is admin-only and removes the token mapping — results become permanently anonymised while preserving analytical continuity for QC and population statistics.

Zitadel is pinned to v2.65.2 and runs in the Docker Compose stack. User provisioning is lazy — the first time a user logs in via Zitadel, the dashboard auto-creates their user record and tenant. Subsequent logins look up the existing tenant association.

Last updated: September 2, 2026