Security & trust centre

Controls you can point at in the source

Security claims are cheap. Below is what is actually implemented, described precisely enough that your security reviewer can test each statement rather than take it on faith — including the honest limits.

01

Password storage

Passwords are stored as PBKDF2-SHA256 hashes with a per-user salt. The plaintext is never written to disk or logged.

02

Session handling

Signed, HTTP-only, SameSite=Lax session cookies carrying only a user id. Role and status are re-read from the database on every request, so a revoked user loses access on their next click.

03

Tenant isolation

Every operational query is scoped by org_id from the session, never from a request parameter, which is what closes the IDOR class of bug.

04

Role-based access

Five roles mapped to explicit permission sets. Route handlers declare the permission they need; the decorator enforces it.

05

Segregation of duties

A submission cannot be approved by the user who made it. The rule is enforced server-side, not hidden in the UI.

06

SQL injection

Every statement is parameterised. No query is assembled by string concatenation of user input.

07

Upload validation

Extension allow-list, 32 MB ceiling, randomised stored filenames, and files served only through an authenticated, tenant-checked route — never from a public directory.

08

Evidence integrity

SHA-256 computed on upload and stored with the record, so tampering after the fact is detectable.

09

Audit trail

Authentication, record changes, approvals, exports and downloads are written to an append-only activity log with actor, IP and timestamp.

10

Least privilege

Viewers cannot write. Makers cannot approve. Checkers cannot edit the record they are reviewing.

11

Data minimisation

The schema stores what a filing needs. Bank details and identity numbers are optional columns, not required ones.

12

Configuration hygiene

Secrets come from the environment. The bundled development key is refused when the app is started in production mode.

13

Deletion and retention

Cascading deletes remove a tenant's rows completely. Retention windows are configurable per organisation.

14

Backups

The datastore is a single file; a scheduled copy is a complete, restorable backup. Restore is a file copy, and should be tested.

15

Dependency surface

Four runtime dependencies. A small surface is the cheapest security control available.

16

Error handling

Stack traces never reach the browser. Errors are logged server-side with a generic page shown to the user.

17

Transport

Deploy behind TLS. The application sets Secure cookies when it detects an HTTPS origin.

What this deployment does not claim

Being straight about the boundary is part of the control set.

  • No certification is asserted. Certification is an audited process against a named scope, and nothing here has been through one.
  • Multi-factor authentication is not implemented in this build. Single-factor password authentication is what ships.
  • Transport security depends on your deployment. Put it behind TLS.
  • The datastore is SQLite, which suits a single-node deployment. Move to a server database before you run this at scale or across nodes.
  • Rates, thresholds and filing dates are configurable defaults with a verification date shown, not an authoritative legal source.

Want the review pack?

Architecture notes, the data model, the permission matrix and the deployment checklist for your security team.

Request it