Stop RLS leaks and destructive migrations before merge.
Real RLS intrusion tests and DDL safety gates for Supabase & RLS-enabled Postgres PRs—verified inside an isolated PGlite chamber. Runs outside your repository as a tamper-proof GitHub App—so AI coding agents can’t rewrite CI YAML or bypass checks to force a green PR.
Tamper-proof external gate (AI can’t rewrite CI)Zero LLM calls — deterministic Postgres proofSQL migrations only — never clones repoIsolated worker (no secrets inherited, 8s timeout)Public repos free forever
Live PGlite Chamber: Paste any Supabase / Postgres migration SQL & run real CRUD probes now
🚨 BLOCKED — Merge Prevented
Runs inside an isolated ephemeral PGlite worker (env: {}) · Zero SQL stored
Critical
High
Review
Ephemeral Postgres Tables Verified
Duration
11
0
0
2 (public.invoices, public.profiles)
Sample
🔴 CRITICAL (BLOCK) — RLS disabled & anon CRUD leak on public.invoices
SchemaWall booted isolated Postgres, seeded User A's row, switched to SET LOCAL ROLE anon, and executed SELECT / INSERT / UPDATE / DELETE (plus cross-tenant User B access) because RLS is disabled with active default privileges.
Fix: ALTER TABLE public."invoices" ENABLE ROW LEVEL SECURITY;
🔴 CRITICAL (BLOCK) — PGlite Proven Leak: anon role can SELECT rows from public.profiles
Explicit FOR SELECT TO anon USING (true) exposes email rows directly, alongside GRANT ALL ON ALL TABLES IN SCHEMA public TO anon.
Fix: Restrict SELECT to authenticated owners: USING ((SELECT auth.uid()) = user_id)
Showing 2 of 11 sample findings — click Run Live PGlite Pentest → or switch presets above to execute live in-memory Postgres.
Why Supabase & RLS-First Postgres Teams Ship With SchemaWall
Purpose-built around the real failure modes of AI-generated SQL migrations.
01 · Real CRUD Penetration Probes
“We thought RLS was enabled—until anon read and deleted rows.”
Regex linters miss default schema privileges, multi-migration drift, and cross-tenant UPDATE/DELETE gaps.
SchemaWall applies your migrations in order inside ephemeral PGlite, seeds synthetic rows respecting FKs & ENUMs, and runs real SELECT/INSERT/UPDATE/DELETE probes as anon and User B.
02 · SECURITY DEFINER & Over-GRANT Guard
“One view without security_invoker = true or GRANT ALL TO anon bypassed every policy.”
PostgreSQL views default to owner privileges, and recent PostgREST incidents stem from broad GRANT ALL ON ALL TABLES IN SCHEMA public TO anon.
SchemaWall inspects view reloptions, SECURITY DEFINER RPC functions executable by anon, and excessive role GRANTs automatically.
03 · Zero-YAML Smart Signal (No False-Positive Fatigue)
“Pure lookup tables like plans shouldn’t break every build.”
Tables with no ownership or PII columns and an explicit public SELECT policy are surfaced as non-blocking REVIEW notices—not red builds.
When an Admin comments /schemawall allow-public public.plans, SchemaWall remembers it. AI agents cannot bypass the gate via inline SQL comments or CI YAML edits.
04 · Isolated Execution, Zero Docker CI Tax
“Setting up Supabase Docker + pgTAP in GitHub Actions takes hours—and breaks.”
No Docker daemon, no pgTAP helper scripts, and no full-repo cloning.
Every check runs inside a disposable worker_threads sandbox with zero inherited secrets, an 8-second hard termination timeout, and fail-open engine safety.
Choose Hosted App or Zero-Egress GitHub Action
Start with the MIT OSS Action for core RLS & DDL checks, or install the Hosted App for full CRUD write probes, cross-tenant isolation, and tamper-proof external PR blocking.
Option A · Zero Egress
OSS GitHub Action (action.yml)
Runs 100% inside your own GitHub Actions runner with zero code egress. Verifies RLS disabled, anonSELECT leaks, and destructive DDL.
uses: schemawall/schemawall@v0.2
with:
path: .
Option B · Tamper-Proof External Gate
Hosted GitHub App
Lives outside your repository as a tamper-proof Required Check—running full anon CRUD write probes, cross-tenant User B isolation, SECURITY DEFINER / over-GRANT audits, and PR diff ratcheting.
Upgrading from a PR link links your GitHub account automatically. If checking out directly from this page, enter your GitHub username or Organization name (e.g. acme-inc) when prompted.