Skip to content

Security & trust specification

Trust is the product.

This page lists what is built and running in Compact today, in plain words. No aspirations and no badges we haven’t earned. The formal version is the Security overview.

[ fig. 01 · request, secret & mail boundary schematic ]
  1. 01 · BROWSER Session cookie only HttpOnly · SameSite=Strict · Sandboxed HTML mail · Remote images blocked
  2. 02 · RUST GATEWAY Policy & sealed secrets Workspace isolation · CSRF header · ChaCha20-Poly1305 · Hashed tokens
  3. 03 · MAIL ENGINE Signed & encrypted mail IMAPS 993 · SMTPS 465 · DKIM (Ed25519 + RSA) · SPF · DMARC · MTA-STS
  4. 04 · AUDIT TRAIL Append-only ledger SQL trigger refuses UPDATE/DELETE · Sign-in history · CSV export
01 · AUTH · OIDC

Accounts and sign-in

The browser never holds a password, and a stolen password alone isn’t enough.

Server-side sessions
Signing in creates a session on our side. The browser keeps only a random identifier in an HttpOnly, SameSite=Strict cookie that scripts can’t read. Sessions end after 8 hours idle or 7 days at most.
Two-step sign-in
Authenticator apps (TOTP) with single-use recovery codes. Each code works once; replays are refused. Admins can require it for admins or for everyone, and people without it are walked through setup at their next sign-in.
App passwords
Outlook, Apple Mail and other apps get their own password, so your main one is never stored in them. Each can be revoked on its own. With two-step sign-in on, the main password stops working in mail apps.
Single sign-on
Microsoft Entra ID, Google, or any OpenID Connect provider, with PKCE, nonce and signature checks on every token. Make SSO required and keep one to five break-glass owners, who always need a second step.
Lockout and sessions
Repeated failed sign-ins from one address pause sign-in for 10 minutes. People can see and end their sessions; admins can sign someone out everywhere.
02 · AEAD · STORAGE

Data protection

Your mail is yours. We hold it to deliver, store, secure and back it up, nothing else.

Encryption in transit
Production requires TLS for the web app, with HSTS, and for mail protocols (IMAPS and SMTPS).
Sealed secrets
Two-step secrets and stored connection secrets are encrypted with ChaCha20-Poly1305 under a server key kept out of the codebase. Recovery codes and integration tokens are stored only as hashes.
Tokens you lend us, we don’t keep
A Cloudflare API token is used for the one request that writes your DNS records: not stored, not logged, not in the audit trail. An import’s source password is sealed while the job exists and deleted with it.
Backups
The mail engine’s data and the gateway database are backed up into archives that can be encrypted, with integrity checks and a restore procedure that is tested.
No advertising, no training
We don’t sell your data, use it for advertising, or use the content of your mail to train models—and our support assistant has zero access to mailboxes.
03 · DKIM · DMARC

Mail you can trust

Mail from your domain is signed, and mail you receive can’t quietly report back.

DKIM, SPF and DMARC
Every domain gets DKIM keys (Ed25519 and RSA), an SPF record merged into the one you have, and a DMARC policy with reports collected in your workspace. MTA-STS and TLS reporting are set up too.
Checked at the source
Records are read from your domain’s own nameservers, not a cached resolver, and checked again on a schedule. If something that passed starts failing, the admin console says so.
Tracking images blocked
Remote images in mail you receive are blocked by default, so senders can’t tell when or where you opened a message.
HTML in a sandbox
HTML mail renders in a sandboxed frame, separate from the app and your session.
04 · CSP · ISOLATION

Application security

Defaults that close whole classes of attack.

Strict headers
A strict Content Security Policy, X-Frame-Options, nosniff, a no-referrer policy and a Permissions-Policy that turns off camera, microphone and location.
CSRF protection
Every state-changing request needs a header a cross-site form can’t send.
Limits
Request size limits, and rate limits on sign-in, signup codes and other sensitive actions.
Workspace isolation
An admin’s workspace always comes from their own address, never from the request, so admins act only inside their own workspace. Automated tests cover every admin endpoint.
05 · AUDIT · SCIM 2.0

Visibility for admins

When something changes, you can see who did it.

Append-only audit log
Admin and security actions with who, what, when and from where. The database itself refuses to edit or delete an entry. Filter it, and export it as CSV.
Sign-in history
Per person, including failed and refused attempts, with the reason.
Suspension that holds
Suspending someone ends their sessions and stops their password and app passwords in mail apps at once. Their mail keeps arriving, so nothing is lost.
SCIM 2.0
Your identity provider creates, updates and suspends people. Wrong tokens count toward the lockout.

06What we don’t claim

explicit boundaries

Security pages tend to list only strengths. Here is what Compact does not have today, so you can decide with the whole picture.

  • Third-party certifications such as ISO 27001 or SOC 2. When one is in place, it will be listed here with its report.
  • Passkeys and hardware security keys for two-step sign-in. Authenticator apps and recovery codes are available today.
  • End-to-end encryption of message content. Mail is encrypted in transit; we don’t describe it as end-to-end.

07Report a vulnerability

Write to security@runcompact.com with the details and steps to reproduce. Please give us reasonable time to fix the issue before disclosing it, and don’t access other people’s data or degrade the service while testing. We’ll acknowledge your report and keep you updated.

Inspect the architecture with your team.

Questions from security or IT review? Write directly and an engineer will answer with specifics.