F-01 CRITICAL Effort · 4h
Row Level Security is off on bookings, clients and payments
Supabase · public schema
- Impact
- The anon key ships in your frontend, as designed. With RLS off, that key can read and change every row in these tables. Anyone can download every coach's client list.
- Fix
- Day 1: enable RLS with owner-scoped policies (coach_id = auth.uid()), tested with two accounts in CI. After the move to RDS, the API enforces the same rule.