Track project · 12
Secure TaskFlow End to End
Add Supabase identity, verify tokens in NestJS, and enforce roles, permissions, ownership, and tenant isolation on the API.
Definition of done
What you are building
Deliverables
Build plan
Work through it one observable step at a time
- 01
Complete sign-up/sign-in and inspect the returned session.
- 02
Send an access token as a bearer token to the API.
- 03
Verify signature/issuer/audience/expiry before constructing current-user context.
- 04
Protect routes with a NestJS guard.
- 05
Return 401 for unusable authentication and 403 for valid identity without permission.
- 06
Add role/permission checks for one action.
- 07
Load the target task and enforce ownership/workspace membership server-side.
- 08
Perform an IDOR test by changing a task id while using another valid user token.
- 09
Add regression tests proving cross-tenant reads/writes stay forbidden.
Evidence
Do not rely on “it seems to work”
Evidence to collect
Project exit ticket