Security, Architecture & UK Data Residency
Plain-English technical and UK GDPR specification for Principal Firm Compliance Officers, Chief Risk Officers, and InfoSec reviewers assessing Statemark.
Core compute, PostgreSQL 16, screenshots & PDFs
Database trigger blocks edits or deletes
Zero CDNs, Google Fonts, or ad trackers
Nightly age public-key encrypted UK dumps
1. Honest UK Data Residency Posture
Core platform, database, screenshots, and PDF oversight archives are hosted 100% in the United Kingdom (DigitalOcean London LON1).
We deliberately do not claim "100% UK data residency" or "zero personal data". Optional wording & scope-drift review uses OpenAI's US API (with API training disabled under the UK IDTA / UK-US Data Bridge, and email addresses and UK phone numbers regex-stripped before transmission), and transactional alert emails route through Resend's EU Ireland (eu-west-1) region without attaching PDFs or internal reviewer notes.
Regulatory Scope Boundary: Statemark provides automated drift monitoring and timestamped oversight evidence to support human compliance review. It is not legal advice and does not perform automated FCA sign-off.
2. Core Technical & Tenant Isolation Controls
- Multi-Tenant Isolation
-
Zero cross-client leakage between Principal Firms Tenant Guard
Every tenant table carries a non-null workspace_id foreign key. All workspace routes enforce membership via a single dependency returning HTTP 404 on unauthorised workspaces or cross-tenant UUIDs. Object storage enforces workspaces/{workspace_id}/ namespace prefix checks on every read and write.
- Immutable Oversight Audit Trail
-
Tamper-evident 5-year compliance history DB Trigger
The finding_audit_events table is protected by a PostgreSQL BEFORE UPDATE OR DELETE trigger that rejects modification or deletion at the database engine level, snapshotting reviewer name and email permanently for 5-year inspection readiness.
- Passwordless Authentication
-
Immune to Microsoft 365 Safe Links & Mimecast Safe-Links Proof
Single-use magic links (15-minute expiry, SHA-256 hashed at rest) require an explicit POST confirmation click so corporate email security scanners cannot pre-consume tokens. Sessions use HttpOnly; Secure; SameSite=Lax cookies with 3-day idle and 14-day absolute expiry.
- Crawler SSRF & XSS Sandboxing
-
Strict network isolation & safe untrusted HTML rendering Egress Proxy
All outbound browser and HTTP traffic routes through Stripe's smokescreen egress proxy blocking private, loopback, and cloud metadata IPs (169.254.169.254). Untrusted broker HTML is escaped before highlighting, wrapped in hx-disable, and links pass through a strict http/https allowlist.
- Offline PDF Sandboxing
-
Zero network or local-file reads during PDF generation Offline Render
WeasyPrint A4 PDF generation runs with a custom url_fetcher that blocks 100% of http://, https://, and file:// URLs. Uploaded firm logos are restricted to PNG, JPEG, and WebP (SVG strictly rejected), stripped of EXIF metadata, and re-encoded via Pillow.
- Encryption & Backups
-
Workspace-bound key encryption & nightly UK backups MultiFernet + age
TLS 1.2+ in transit via Caddy; optional customer API credentials are encrypted with MultiFernet bound to workspace_id. Nightly PostgreSQL dumps are public-key encrypted with age before streaming to private DigitalOcean Spaces (LON1).
3. Sub-Processor Disclosure
We maintain a minimal sub-processor footprint with zero third-party browser CDNs, zero Google Fonts, and zero advertising or analytics trackers.
| Sub-Processor | Service Role | Processing Region | Data Categories | Safeguards |
|---|---|---|---|---|
| DigitalOcean LLC | Core compute, PostgreSQL 16 database, private Spaces object storage & encrypted backups | LON1 (London, UK) | Workspace accounts, AR rosters, snapshots, audit logs, cached PDFs | UK hosting, private bucket ACLs, nightly age encryption |
| OpenAI, L.L.C. | Diff-only AI compliance classification & quote extraction on changed public AR webpages | United States | Public webpage text (emails/UK phones stripped) & Hero/Footer crops; zero CH officer data or reviewer notes | API training disabled; UK IDTA / UK-US Data Bridge; PII minimisation |
| Resend, Inc. | Transactional email delivery (magic-link sign-in, weekly digest, urgent alert link notifications) | eu-west-1 (Ireland, EU) | Recipient work email address & high-level finding titles; zero PDF attachments or reviewer notes | UK-EU adequacy; TLS transmission; strict no-attachment policy |
4. Ethical Crawling & Bot-Wall Transparency
Statemark monitors only publicly accessible webpages and official UK government registers (Companies House REST API). We never attempt to defeat CAPTCHAs, Cloudflare Turnstile challenges, or access controls. If an Appointed Representative's firewall blocks automated visits, the scan is reported honestly as bot_blocked and we provide our static London (LON1) IP address for straightforward allowlisting.