RLS Policy Testing
Quick Start
- •Identify role and table scope.
- •Run role-specific tests.
- •Summarize access violations.
Steps
- •Use docs and tests:
- •
docs/AUTH_ROLES.md - •
tests/rls/ - •
tests/admins/,tests/therapists/,tests/clients/ - •
cypress/e2e/auth-roles.cy.ts - •
cypress/e2e/role_access.cy.ts
- •
Output
- •Failing roles/tables and remediation hints.