Overview
Sorcia uses PostgreSQL’s Row-Level Security (RLS) to enforce organization-level data isolation at the database layer.How RLS Works
Every database query automatically filters by organization:Security Policies
Documents Table
Memberships Table
Benefits
Defense in Depth
Security at database level
No Application Bugs
Works even if app has bugs
Audit Compliance
Database-level isolation
Performance
Database handles filtering
Multi-Tenant Architecture
Session Context
Each request sets the user’s organization:Testing RLS
Verify RLS is working:Next Steps
Audit Logs
View access logs