SUPABASE POSTGREST & DDL SECURITY AUDITOR

Check if your Lovable, Bolt, or Cursor app leaks Supabase rows to anonymous users.

Paste your public URL or schema.sql below. RLSGuard inspects your compiled JS bundles for leaked service_role keys, probes every PostgREST table with zero-data HTTP HEAD requests, and generates a ready-to-run fix.sql patch.

HTTP HEAD only · 0 rows downloaded
STRUCTURAL AUDIT SPECIFICATION

What RLSGuard checks on every scan

Six deterministic security checks covering PostgREST endpoints, PostgreSQL catalog rules, and frontend JavaScript bundles.

CHK-01

Permissive USING (true) & WITH CHECK (true) policies

pg_policies / schema.sql

AI coding assistants frequently silence RLS errors by generating CREATE POLICY ... USING (true) for the anon role. That makes every row readable or writable by anyone with your public anon key.

CHK-02

Anonymous row exposure via HTTP HEAD count probes

GET /rest/v1/ + HEAD /rest/v1/{table}

Enumerates exposed tables from your PostgREST OpenAPI spec and sends HEAD requests with Prefer: count=exact. Confirms the exact count of exposed rows while downloading 0 bytes of user data.

CHK-03

Bundled service_role JWTs & third-party API secrets

Client-side JS chunks (<script src>)

Inspects compiled Vite and Next.js bundles for leaked Supabase service_role tokens (which bypass RLS completely), OpenAI sk-proj keys, Anthropic keys, Stripe live keys, and Postgres URIs.

CHK-04

Views bypassing RLS without security_invoker = true

CREATE VIEW public.*

In PostgreSQL, views run with the permissions of the view creator (typically postgres) unless security_invoker = true is explicitly set. An unguarded view exposes underlying RLS-protected tables.

CHK-05

SECURITY DEFINER functions missing fixed search_path

CREATE FUNCTION ... SECURITY DEFINER

Functions marked SECURITY DEFINER execute with elevated privileges. Without an explicit SET search_path = public, pg_temp clause, they are vulnerable to object shadowing and privilege escalation.

CHK-06

Publicly enumerable Supabase Storage buckets

GET /storage/v1/bucket

Probes whether anonymous tokens can list bucket metadata and enumerate uploaded user documents, avatars, or invoice PDFs without signed URL authorization.

FOUNDING ACCESS COHORT · 50% OFF

Direct remediation pricing

Run the free diagnostic scan above first. Pay only when you need the complete remediation migration or automated daily guard.

14-day unconditional refund policy on every plan
ONE-TIME PATCH

Launch Fix Pack

$29$58one-time per project

Immediate remediation SQL and verification harness for founders preparing to launch a Lovable, Bolt, or Cursor app.

  • Complete unlocked fix.sql tailored to your exposed tables & views
  • Tenant-isolated auth.uid() policies for SELECT, INSERT, UPDATE, DELETE
  • Rollback migration script to revert safely if needed
  • PostgREST curl verification script + 1 full re-scan credit
MOST POPULAR · DEVSECOPS

Continuous Guard

$19$39per month · cancel anytime

Automated daily HTTP HEAD probes so a new AI-generated table or prompt iteration never re-opens your database in production.

  • Includes full unlocked fix.sql migration on day one
  • Daily read-only PostgREST HEAD probes across all tables
  • Automated client JS bundle scan for leaked API keys
  • Instant email & webhook alert when a new table ships without RLS
HANDS-ON ENGINEERING

Done-For-You Hardening

$139$249one-time · 48h turnaround

We audit your repository and Supabase schema directly, write and test your multi-tenant RLS policies, and deliver a clean PR.

  • Full review of schema.sql, RPC functions, views, and storage buckets
  • Cross-tenant isolation test suite executed across 2 test accounts
  • Frontend bundle secret extraction to secure Edge Functions
  • Signed PDF audit report + 30 days of Continuous Guard included