Write tests that verify: User A cannot read User B's data. Anon users cannot read private data. RLS bugs are data breaches.
Why This Matters
RLS policy bugs are silent — they don't throw errors. Instead, they return data that shouldn't be visible. Only tests catch these.
Tags
nextjssupabaseTesting
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and 3+ others. Get actionable feedback before code ships.