row-level-security
Installation
SKILL.md
Row Level Security (RLS)
Database-level data isolation for multi-tenant applications.
When to Use This Skill
- Building multi-tenant SaaS applications
- Ensuring users can only access their own data
- Implementing organization-based data isolation
- Adding defense-in-depth security layer
Why RLS?
Application-level filtering can be bypassed. RLS enforces access at the database level:
❌ Application Filter: SELECT * FROM posts WHERE user_id = ?
(Bug in code = data leak)