Add RLS policies to auth tables with FORCE enforcement #350
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase 1a - Security Foundations
Problem
The accounts, sessions, and verifications tables have NO Row-Level Security policies. Additionally, all 23 existing RLS-enabled tables only use ENABLE ROW LEVEL SECURITY without FORCE, meaning Prisma (connecting as table owner) silently bypasses all policies. Tenant isolation is application-level only.
Requirements
Implementation Notes
Files
Acceptance Criteria
Dependencies
Refs #346