rls-policy-auditor
CommunityProve tenant isolation at the database layer.
Software Engineering#security#rls#row-level security#postgres#tenant isolation#policy audit#negative tests
Authornguyenpv1980-wq
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill audits row-level security policies to verify that tenant-scoped database data is actually protected, not just configured. It finds missing tenant filters, write-side gaps, recursion, unsafe helpers, overly broad grants, and other conditions that can leak or corrupt tenant data.
Core Features & Use Cases
- Per-command policy audit: Reviews SELECT, INSERT, UPDATE, and DELETE policies separately so read and write holes are caught independently.
- Failure-mode detection: Flags missing WITH CHECK clauses, deny-by-default gaps, policy recursion, SECURITY DEFINER risks, service-role leakage, and frontend-derived tenant scope.
- Negative-test planning: Produces runnable denial tests that prove wrong-tenant, wrong-role, and missing-auth access is blocked, with positive controls for comparison.
- Use case: A team has enabled RLS on Supabase tables and needs a rigorous audit before shipping multi-tenant features or fixing a suspected isolation bug.
Quick Start
Ask the skill to audit your tenant-table RLS policies and generate a per-command findings report plus negative-test SQL that proves cross-tenant access is denied.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: rls-policy-auditor Download link: https://github.com/nguyenpv1980-wq/Project-Aegis/archive/main.zip#rls-policy-auditor 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 545,000+ vetted skills library on demand.