← Track projects
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

  1. 01

    Complete sign-up/sign-in and inspect the returned session.

  2. 02

    Send an access token as a bearer token to the API.

  3. 03

    Verify signature/issuer/audience/expiry before constructing current-user context.

  4. 04

    Protect routes with a NestJS guard.

  5. 05

    Return 401 for unusable authentication and 403 for valid identity without permission.

  6. 06

    Add role/permission checks for one action.

  7. 07

    Load the target task and enforce ownership/workspace membership server-side.

  8. 08

    Perform an IDOR test by changing a task id while using another valid user token.

  9. 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

Close the project only when these are true

Completion