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.
Security architecture summary
Section titled “Security architecture summary”Verin uses a layered control model:
- Identity and session controls — Auth0 (cloud default) or local JWT (self-hosted / desktop)
- Authorization and tenant/workspace access controls — RBAC enforced server-side, with explicit permission checks on sensitive routes
- Data protection controls — Fernet-encrypted OAuth tokens at rest, TLS in transit for hosted deployments, optional PII / PHI redaction in the ingestion pipeline
- Audit and traceability controls — append-only audit log with database-level immutability triggers (PostgreSQL) or event-listener enforcement (SQLite for desktop), exportable for inspections
- Deployment-mode isolation — distinct profiles for cloud (PostgreSQL + Weaviate) and self-contained desktop (SQLite + ChromaDB)
Trust boundaries
Section titled “Trust boundaries”1. Client to API
Section titled “1. Client to API”Browser/desktop client sends a bearer token. The API enforces identity and role/permission checks before any tenant-scoped operation.
2. API to persistence
Section titled “2. API to persistence”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.
3. API to third-party
Section titled “3. API to third-party”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.
4. Platform admin boundary
Section titled “4. Platform admin boundary”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 isolation model
Section titled “Tenant isolation model”- Tenant scoping is implemented at the model and query level using
tenant_idacross 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.
Audit and monitoring
Section titled “Audit and monitoring”- 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_logstable — UPDATE and DELETE on log rows raise an exception - SQLite event-listener enforcement registered at runtime for desktop mode
- PostgreSQL trigger-based immutability migration enforced on the
- 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.
Data protection and cryptography
Section titled “Data protection and cryptography”- 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.
Deployment modes
Section titled “Deployment modes”Cloud mode
Section titled “Cloud mode”- PostgreSQL + Weaviate
- External identity provider support (Auth0)
- Audit immutability enforced via database triggers on PostgreSQL
Desktop / self-contained mode
Section titled “Desktop / self-contained mode”- SQLite + ChromaDB
- Local authentication (no external IdP dependency)
- Audit immutability enforced via SQLAlchemy event listeners
Control posture snapshot
Section titled “Control posture snapshot”We’re transparent about what’s implemented today vs what’s still maturing. Defensibility comes from honesty.
Implemented
Section titled “Implemented”- 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_hashper 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)
Partial / maturing
Section titled “Partial / maturing”- 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
Planned
Section titled “Planned”- Formalized governance artifacts (incident response, retention schedule, BCDR test evidence)
- SOC 2 Type II and ISO 27001 certification work
- Quarterly control-evidence review cadence
Current gaps
Section titled “Current gaps”Stating gaps openly is what makes the posture defensible:
- Dev auth bypass controls are not fully locked down for production environments. Hardening is part of the launch-readiness work.
- Rate-limit controls are not consistently enforced at every API boundary. Specific endpoints (login, signing, LLM-bound) are rate-limited; coverage is being expanded.
- Formal security operations artifacts (incident response runbooks, retention schedule, BCDR test evidence) are incomplete. Roadmap below.
Roadmap
Section titled “Roadmap”- 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)
What’s next
Section titled “What’s next”- Privacy overview — how Verin handles privacy-sensitive data
- Shared responsibility model — what Verin operates vs what customers operate
- Documents and the ingestion pipeline — including what’s stored and what isn’t
- Audit log — append-only logging with database-level immutability
- Electronic signatures — Part 11 alignment
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.