Security architecture¶
This chapter is written for the people who evaluate us: an IT due-diligence reviewer, an auditor, a CISO working through a vendor questionnaire. It describes how the platform is built, in enough detail to be checkable, and it ends with an honest statement of what we have not done yet. Questions it does not answer are welcome at [email protected].
Tenancy isolation¶
Every customer workspace is a separate PostgreSQL schema. Isolation is structural, not conditional: a request is routed to its workspace's schema at the connection level before any query runs, rather than each query being trusted to filter by a tenant column. There is no cross-tenant query path in the application, and nothing - funds, investors, documents, users, audit records - is shared between workspaces.
Application code cannot forget to apply this; the routing happens below it.
Identity and access¶
- Passwords are hashed with Argon2id. Plaintext passwords are never stored and never logged.
- Single sign-on: a workspace can sign its users in through its own OpenID Connect provider (Entra ID, Okta, Google and other standards-based providers). Every flow uses authorization code with PKCE, and the ID token is fully verified: signature against the provider's published keys, issuer, audience, expiry and nonce. Sign-in can be limited to the workspace's email domains, and administrators keep a password path for recovery if the provider is unavailable.
- Two-factor authentication is standard TOTP (RFC 6238, the algorithm behind Google Authenticator and its peers), implemented server-side with replay protection - a code cannot be used twice, even inside its validity window. Enrollment secrets are stored encrypted; recovery codes are stored only as hashes. Workspaces can require MFA for every user (see Administering the workspace).
- Authorization is role-based and enforced server-side on every API request; UI visibility is never the control. Changing a user's roles ends their live sessions at once, so new permissions apply from the next sign-in.
- Sign-in throttling locks an account after repeated failures within a window; failed second-factor attempts count the same as failed passwords.
- Administrative recovery actions (MFA reset, deactivation) require an administrator permission and land in the append-only authentication log.
Sessions, cookies, CSRF¶
Sessions ride short-lived signed tokens in cookies that are HttpOnly (script cannot read them), SameSite=Lax, and Secure in production. State-changing requests additionally require a CSRF token bound to the session. Workspaces can tighten idle timeout and maximum session length; the enforced lifetime is always the minimum of the platform default and the workspace policy, applied at issue and at every refresh - a stolen token cannot outlive the idle policy.
Encryption¶
- In transit: TLS for every connection - browser to platform, platform to database, platform to sub-processors. There are no plaintext listeners.
- At rest: the database and its backups are encrypted with AWS KMS. Secrets held on behalf of a workspace (for example an AI provider key, or MFA enrollment secrets) are additionally encrypted at the application layer, so a database copy alone does not expose them.
Auditability and immutability¶
Two planes of record:
- The change log: every create, update, and delete of a business record is written in the same database transaction as the change. If the log write fails, the change rolls back with it; there is no window where a change exists unlogged.
- The authentication log: sign-ins, failures, MFA lifecycle events, and administrative resets, append-only and enforced by database triggers rather than application code. No application path - including administrator paths - can edit or delete an entry.
Closed accounting periods freeze their trial balance as a stored artifact; statements for a closed period read the frozen artifact, not a recomputation, so what was reported stays what was reported.
Data lifecycle¶
- Backups: automated encrypted database backups kept 7 days, a daily copy into a locked backup vault kept 35 days, and a snapshot taken automatically before every production deployment (the last five are kept). Restore is exercised as part of infrastructure changes, not assumed.
- Anonymized copies: when a workspace copy is needed outside production (delivery testing, demonstrations), it goes through an anonymization pipeline with two profiles: pseudonymization (names replaced by opaque, deterministic tokens) or full fictionalization (names replaced from fictional pools, free text scrubbed with identity substitution). The pipeline is allowlist-based - every table and every risky column must be explicitly classified, and a CI guard fails the build when a new column appears unclassified - so new features cannot silently leak identifying data into copies.
- AI features are opt-in. They are off by default for a new workspace and a workspace administrator turns them on in Administration. With AI off, nothing from the workspace is sent to an AI provider, and support requests are not triaged by a model.
- Sub-processors: AWS (hosting, United States), Cloudflare (DNS and edge), PostHog (product analytics: screen templates, error kinds and one-way hashes, never workspace content), GitHub (code and build), and Anthropic (AI-assisted features, only for workspaces that turn AI on). The full list, kept current, is on the sub-processors page.
Operational security¶
- Dependency auditing runs on a weekly schedule across the full backend and frontend dependency trees; known-vulnerability findings fail the run loudly and are remediated, not triaged into a backlog.
- Every change passes typed, linted, tested continuous integration before deployment; database migrations are applied by the deployment pipeline, never by hand on a production box.
- Production access is by short-lived, role-scoped credentials (no static keys in the deployment path), and the production database refuses deletion at the infrastructure level.
- A sweep of 123 accounting checks is the standing check that the books stay internally consistent. Production is swept after every deployment and weekly, the development environment daily, and every night continuous integration runs it over the end-to-end scenario funds.
What we have not done yet¶
Honesty is cheaper than a finding:
- SOC 2: the control set above is built and operating, but we have not yet engaged an external auditor; there is no Type I or Type II report to hand you today. The readiness work is tracked and current.
- Third-party penetration test: not yet commissioned. The surface is small (one web application, one API) and the internal posture is described above, but an external test has not confirmed it.
- SAML: single sign-on is OpenID Connect only; SAML is not supported.
If your evaluation needs one of these to move, tell us - the sequencing of exactly this list is driven by real evaluations.