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.
What RLSGuard checks on every scan
Six deterministic security checks covering PostgREST endpoints, PostgreSQL catalog rules, and frontend JavaScript bundles.
Permissive USING (true) & WITH CHECK (true) policies
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.
Anonymous row exposure via HTTP HEAD count probes
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.
Bundled service_role JWTs & third-party API secrets
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.
Views bypassing RLS without security_invoker = true
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.
SECURITY DEFINER functions missing fixed search_path
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.
Publicly enumerable Supabase Storage buckets
Probes whether anonymous tokens can list bucket metadata and enumerate uploaded user documents, avatars, or invoice PDFs without signed URL authorization.
Direct remediation pricing
Run the free diagnostic scan above first. Pay only when you need the complete remediation migration or automated daily guard.
Launch Fix Pack
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
Continuous Guard
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
Done-For-You Hardening
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