Skip to content

Security overview

Last reviewed: 2026-03-27. Owner: Platform Engineering. Applies to: Cloud and Desktop deployments.

This page is Verin’s customer-facing security overview. It describes the architecture and control posture as currently implemented and is deliberately evidence-driven — we describe what exists today rather than asserting certifications we haven’t yet earned. SOC 2 / ISO 27001 audit work is in progress; updated control evidence and certification status are tracked separately.

Verin uses a layered control model:

  1. Identity and session controls — Auth0 (cloud default) or local JWT (self-hosted / desktop)
  2. Authorization and tenant/workspace access controls — RBAC enforced server-side, with explicit permission checks on sensitive routes
  3. Data protection controls — Fernet-encrypted OAuth tokens at rest, TLS in transit for hosted deployments, optional PII / PHI redaction in the ingestion pipeline
  4. Audit and traceability controls — append-only audit log with database-level immutability triggers (PostgreSQL) or event-listener enforcement (SQLite for desktop), exportable for inspections
  5. Deployment-mode isolation — distinct profiles for cloud (PostgreSQL + Weaviate) and self-contained desktop (SQLite + ChromaDB)

Browser/desktop client sends a bearer token. The API enforces identity and role/permission checks before any tenant-scoped operation.

PostgreSQL stores tenant-scoped records and audit logs (cloud); SQLite stores them in desktop mode. Vector stores (Weaviate cloud, ChromaDB desktop) hold document chunks and metadata with tenant-scoped filters / collections.

Auth0 (when enabled) for identity. OAuth providers (Google Drive, Dropbox, OneDrive) for cloud-source import. LLM and vector services per runtime configuration. The full subprocessor inventory is published with a customer’s evaluation package on request.

Platform admin roles can access cross-tenant metadata management endpoints. Product intent is to restrict platform admins from tenant business-data content; access to that content is audit-logged.

Identity, authentication, and authorization

Section titled “Identity, authentication, and authorization”
  • Authentication modes:
    • Auth0 JWT verification (cloud default; supports SSO via SAML / OIDC, Auth0 organizations for tenant mapping)
    • Local JWT mode with bcrypt password verification (self-hosted / desktop)
  • Authorization:
    • Role-permission mapping enforced at the service layer (six-role model — see Users, roles, and permissions)
    • Explicit permission checks on sensitive routes, including extraction approval, audit export, and tenant administration
    • Platform-admin gate for /platform/* and equivalent administrative boundaries
  • Segment/workspace access:
    • Optional segment restrictions, with fallback to unrestricted behavior when no grants exist
  • Electronic signatures:
    • 21 CFR Part 11 §11.200(a)(1) two-component identification (sign-in identity + separate signing password) for extraction approval, the one action that produces an attested record today — see Electronic signatures
  • Tenant scoping is implemented at the model and query level using tenant_id across every tenant-scoped record. Every query filters on it.
  • Document vectors include tenant metadata; vector search filters by tenant on every retrieval.
  • Desktop mode uses per-tenant collection naming for vector storage.
  • There is no shared model trained on customer data. LLM calls retrieve from the tenant scope and pass that retrieved context to the configured LLM provider for one-off generation; the context is not retained or fed back into model weights.

See Workspaces and tenants for the data-isolation model in detail.

  • In v1.11, successful approvals, failed signing attempts and audit-trail exports generate audit events. Approval evidence commits atomically with the signed record; deployed qualification remains pending.
  • Immutability protections:
    • PostgreSQL trigger-based immutability migration enforced on the audit_logs table — UPDATE and DELETE on log rows raise an exception
    • SQLite event-listener enforcement registered at runtime for desktop mode
  • Tamper-evidence: every audit row is stamped at insert with a SHA-256 integrity_hash (id, timestamp, tenant, actor, action, details, IP, user agent, build version), so an altered row can be detected by recomputing its hash. The hash is not keyed or chained, and no scheduled verification runs yet
  • Audit exports support CSV and PDF and record the export action, including actor, format, date range and count.
  • OAuth tokens at rest are encrypted using Fernet (symmetric authenticated encryption) before being written to the database.
  • Transport security depends on deployment: HTTPS in cloud (Azure-terminated TLS); desktop mode is loopback / local-network scoped by design.
  • PII / PHI redaction service (Microsoft Presidio with regex fallback) is integrated into ingestion flows; redaction runs before any AI processing and the original document file bytes are not retained — see Documents and the ingestion pipeline.
  • PostgreSQL + Weaviate
  • External identity provider support (Auth0)
  • Audit immutability enforced via database triggers on PostgreSQL
  • SQLite + ChromaDB
  • Local authentication (no external IdP dependency)
  • Audit immutability enforced via SQLAlchemy event listeners

We’re transparent about what’s implemented today vs what’s still maturing. Defensibility comes from honesty.

  • Server-side RBAC permissions and tenant-scoped query model
  • Per-tenant vector and structured isolation
  • OAuth token encryption at rest
  • Audit log database-level immutability (PostgreSQL trigger; SQLite event listener)
  • Audit tamper-evidence hash (SHA-256 integrity_hash per row)
  • Electronic-signature immutability (PostgreSQL triggers; SQLite event listener) with content-manifest binding
  • PII / PHI redaction service integrated in ingestion
  • Audit export (CSV / PDF) endpoints
  • CORS explicit allowlist
  • Structured logging with no sensitive values logged
  • TLS in transit (cloud: Azure-terminated; desktop: local-only by design)
  • API rate limiting (brute-force on login; per-user limits on LLM endpoints; per-user limits on signing)
  • Dev auth bypass controls (production environments)
  • Brute-force / rate-limit consistency across the API surface
  • Formal retention policy enforcement (current behavior: retain by default, no auto-prune)
  • Incident response and BCDR documentation
  • Formalized governance artifacts (incident response, retention schedule, BCDR test evidence)
  • SOC 2 Type II and ISO 27001 certification work
  • Quarterly control-evidence review cadence

Stating gaps openly is what makes the posture defensible:

  1. Dev auth bypass controls are not fully locked down for production environments. Hardening is part of the launch-readiness work.
  2. Rate-limit controls are not consistently enforced at every API boundary. Specific endpoints (login, signing, LLM-bound) are rate-limited; coverage is being expanded.
  3. Formal security operations artifacts (incident response runbooks, retention schedule, BCDR test evidence) are incomplete. Roadmap below.
  • 2026-Q2 — complete security hardening baseline for auth, CORS, abuse controls
  • 2026-Q2 — publish and maintain control-evidence index with quarterly review cadence
  • 2026-Q3 — expand operational governance pack (incident handling, backup validation, restoration tests)

If you’re in active procurement and need the full control evidence package (including subprocessor inventory and audit artifacts), contact us — we share the relevant subset directly.