Security
What we actually do
Specific controls, tested where noted, and a plain list of what is not done.
Authentication
Email magic links through a maintained library (Better Auth), httpOnly session cookies, 10-minute single-use links. No passwords stored.
Tenant isolation
Every tenant-owned row carries an organisation id, and composite foreign keys stop a record pointing at another organisation's data. Every server action and route checks the caller's role for that resource. Unauthorised resources return “not found”, not “forbidden”, so guessed IDs reveal nothing.
Roles
Owner, admin, member, and assigned coach. Admins and coaches manage invitations and see completion, never answers or reports. Recipients see only their own released reports.
Invitation links
256 bits of entropy, stored only as a keyed hash, scoped to one assignment, expiring at the deadline, revocable. The emailed link trades itself for an httpOnly cookie and redirects away. Sensitive routes send no-referrer and no-store headers, and are excluded from request logging and analytics.
Reviewer identity
A submitted response carries no name, email or assignment id. De-duplication uses a keyed reference. The report builder never reads the invitation table.
Integrity
Database triggers lock submitted responses, freeze launched questionnaire versions and report snapshots, and make the audit log append-only.
Operator access
Support has no tenant-level tool. Anyone with database access can in principle read stored data; this is stated to reviewers.
Not done yet
- No independent penetration test or security attestation (we claim no SOC 2, ISO 27001 or similar).
- Row-level security in the database is not enabled; isolation is enforced in application code and foreign keys, and tested.
- Data retention and deletion controls are not yet self-serve.
- Email is captured locally unless SMTP is configured; delivery to real inboxes has not been tested.
- Rate limiting relies on the authentication library's defaults.
