Isolated PGlite Postgres Chamber · CRUD RLS & DDL Safety Gate

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 proof SQL migrations only — never clones repo Isolated 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.
Stop AI-generated RLS leaks & CI bypasses automatically on every GitHub PR: Install Hosted App (14-Day Private Trial)

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, anon SELECT 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.

Install Hosted GitHub App
Capability OSS Action (MIT) Hosted GitHub App
Isolated in-memory PGlite worker (env: {}, 8s timeout) ✅ ✅
RLS disabled, anon SELECT leaks & destructive DDL ✅ ✅
Zero code egress (runs in your GitHub Actions runner) ✅ SQL migrations only
anon INSERT / UPDATE / DELETE write probes — ✅
Cross-tenant User B (auth.uid()) CRUD isolation tests — ✅
SECURITY DEFINER view/RPC & excessive GRANT audits — ✅
Tamper-proof external Check Run & PR diff ratchet — ✅
Admin /schemawall allow-public comment approvals — ✅

Simple, Flat Pricing (Unlimited Seats)

Public repositories and local CLI are free forever. Paid billing handled by Polar.sh (Merchant of Record · global VAT & invoices).

Free
$0 / forever

Open-source projects, local CLI runs, and a full 14-day private repository trial (no card required).

  • Unlimited Public repositories
  • 14-day Private repository trial
  • Unlimited local CLI & OSS Action
  • Hosted App: full CRUD & DDL checks; OSS Action: core RLS & DDL
Start 14-Day Free Trial
Org
$149 / month

Or $1,490/year. For multi-repo organizations & agencies needing unlimited private coverage.

  • Unlimited Private repositories
  • Unlimited seats across your Org
  • Admin /schemawall allow-public approvals
  • Priority email support
Subscribe to Org ($149/mo) Or pay annually: $1,490/year (2 months free)

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.