multi-tenancy-row-level
CommunityPrevent SaaS cross-tenant data leaks with Postgres RLS.
Software Engineering#access control#multi-tenancy#row-level security#saas#postgres#tenant isolation#data leak prevention
Authorrobotijn
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Multi-tenant SaaS applications face critical risk of cross-tenant data leaks when application code forgets to filter queries by tenant ID, or when database permissions are misconfigured, leading to compliance violations, regulatory fines, and permanent loss of customer trust.
Core Features & Use Cases
- Automated RLS Policy Implementation: Generates production-ready Postgres Row-Level Security policies that automatically scope all read and write operations to the correct tenant, even if application code omits tenant filters.
- Multi-Language Support: Includes implementation patterns for TypeScript (Drizzle, Prisma), Python (SQLAlchemy), C# (EF Core), and Java (Hibernate) data layers.
- CI Integration: Provides pre-built test patterns and CI check scripts to validate cross-tenant isolation on every pull request, catching leaks before they reach production.
- Use Case: For a B2B SaaS app storing client project data, this skill ensures that a user from Org A can never access, modify, or delete projects belonging to Org B, even if a developer accidentally writes a query without an org_id filter.
Quick Start
Use the multi-tenancy-row-level skill to implement Postgres RLS policies for your SaaS app's tenant-scoped database tables to enforce automatic cross-tenant data isolation.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: multi-tenancy-row-level Download link: https://github.com/robotijn/ctoc/archive/main.zip#multi-tenancy-row-level Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 537,000+ vetted skills library on demand.