Sample launch audit
This is the format you receive. The findings are real issues I found and fixed in production Next.js and Supabase apps I maintain. Product names, people and data are removed.
Summary
| Severity | Count | Meaning |
| Critical | 2 | Data or accounts exposed to the wrong person. Fix before launch. |
| High | 3 | Data lost or silently not saved. Fix this week. |
| Medium | 1 | Users get confused or misled. Fix when convenient. |
Tested as 4 roles (admin, staff, member, guardian) on desktop Chrome and emulated iOS Safari and Android Chrome.
Findings
Critical
A staff user can grant themselves billing and account-admin rights
- Steps
- Sign in as staff with “manage staff” permission. Open Staff → Permissions → your own row. Turn on Billing and Accounts. Save. Reload.
- Expected
- The server refuses changes to your own permissions and refuses permissions you don't hold.
- Actual
- Saved. The server action only checked “can manage staff”.
- Fix
- On the server: reject when target = current user, and only allow granting permissions the current user already has.
- Evidence
- Request and response captured; re-tested after fix.
Critical
A design-preview page in production shows a working admin login
- Steps
- Logged out, open
/login-preview.
- Expected
- 404, or the page requires sign-in.
- Actual
- A mock login screen pre-filled with a real admin username and password. Anyone with the URL could sign in as admin.
- Fix
- Delete the route, rotate the password, and add a build check that fails on preview routes outside development.
- Evidence
- Screenshot; route removed and password rotated the same day.
High
“Delete all” deletes rows the user never saw
- Steps
- Open a list grouped into collapsed sections. Expand one section, tick “Select all”, delete.
- Expected
- Only the visible, selected rows are deleted.
- Actual
- Every row in every section is deleted. Selection was built from the full dataset, not the rendered rows. No undo.
- Fix
- Build the ID list from rendered rows only, and show the exact count in the confirm dialog.
- Evidence
- Row counts before and after.
High
One emoji cut in half drops a notification to 101 users
- Steps
- Post a message whose 50th character is an emoji. The notification preview is built with
text.slice(0, 50).
- Expected
- All 101 members get the in-app notification.
- Actual
- The cut leaves half an emoji, the database API rejects the whole 101-row insert, and nobody is told.
- Fix
- Cut by code point (
Array.from(text).slice(0, 50)) and log failed inserts.
- Evidence
- Reproduced with a 30-line script.
High
One deleted account breaks a weekly 100-recipient send for 4 weeks
- Steps
- Schedule a weekly message to a saved list of user IDs. Delete one of those users.
- Expected
- The deleted user is skipped, 99 people are notified.
- Actual
- A foreign-key error on the deleted ID rejects the entire batch, every week, silently.
- Fix
- Filter IDs against existing users before insert; fall back to row-by-row on batch failure.
- Evidence
- Error log entry and database diff.
Medium
A form saves next year's date by default
- Steps
- Submit the form without touching the year dropdown.
- Expected
- Today's year.
- Actual
- 19 real submissions were saved with next year's date and never appeared in staff's “today” view.
- Fix
- Default to today, limit choices to the current year, validate on the server. Corrected the 19 rows.
- Evidence
- Database query of future-dated rows.
Method
| Check | How |
| Row Level Security | Sign in as user A, request user B's rows directly through the Supabase REST API for every table. |
| Role × page sweep | Open every route as every role; flag anything that loads for the wrong role. |
| Exposed secrets | Search the shipped JavaScript bundle for service keys and third-party secrets. |
| Main flows | Automated Playwright click-through of sign-up, login, payment and core actions on desktop and emulated mobile. |
| Silent failures | Watch network responses for rejected writes that the UI reports as success. |
Mobile checks use browser emulation, not physical devices. I'll say so in the report.