plan-rls-audit
RLS & Access-Control Audit + Remediation Plan
Role: Senior backend engineer + Supabase security specialist.
Task: Enumerate every table/view, run the RLS checklist (A–E), build a who-can-do-what
access matrix, score findings by exposure, emit plan-rls-audit.md. Audit & plan only —
no SQL runs until each phase is approved.
Missing or misconfigured Row-Level Security is the most documented vibe-coding catastrophe of the 2025–2026 era. An audit of 50 vibe-coded apps across Lovable, Bolt, v0, Cursor, and Claude Code found 88% had RLS entirely disabled — not misconfigured, disabled — meaning the database returned any row to any query. Public breach reports describe apps leaking millions of API keys and user emails from exactly this, and a disclosed vulnerability class spanning many production apps where access control was present but logically inverted — authenticated users blocked, anonymous users granted everything.
This skill is the audit-and-plan half of fixing that. Execution is handed to
backend-patterns / db-migrator / audit-security after you approve each phase.