-- 4-Line Supabase Row Level Security (RLS) Lockdown
ALTER TABLE public.profiles ENABLE ROW LEVEL SECURITY;
ALTER TABLE public.profiles FORCE ROW LEVEL SECURITY;
CREATE POLICY "users_read_own_rows" ON public.profiles
FOR SELECT TO authenticated USING (auth.uid() = user_id);
Free Supabase RLS & Exposed Anon Key Checker (Passive, Read-Only)
Inspect any live web app for shipped Supabase project refs, PostgREST OpenAPI table exposure, Firebase configs, and leaked client secrets (service_role, sk_live_, AIzaSy) — without querying a single user row.
Lock down Supabase RLS in 4 lines of SQL
Run this in Supabase SQL Editor on every public table so the browser anon key only returns rows owned by the authenticated user.
# Read-only PostgREST OpenAPI root check
curl -sS "https://<ref>.supabase.co/rest/v1/" \
-H "apikey: <SUPABASE_ANON_KEY>" \
-H "Accept: application/json" \
| jq '.paths | keys'
Audit security, DMARC, TLS & AI search in one scan
Go beyond client JS bundles: check HTTP headers, TLS 443, SPF/DKIM/DMARC deliverability, and GPTBot/ClaudeBot readiness.
Common questions
Is exposing my Supabase anon key in frontend JavaScript a vulnerability compared to service_role?
No. The Supabase anon key is intentionally publishable so browser clients can talk to PostgREST and Auth. It is safe only when Row Level Security (RLS) is enabled with strict policies on every public table. By contrast, exposing a service_role JWT in client JS is a critical breach because service_role bypasses all RLS policies completely.
How do Supabase Row Level Security (RLS) policies protect public tables?
When you run ALTER TABLE ... ENABLE ROW LEVEL SECURITY, PostgreSQL denies all anonymous and authenticated table access by default until you define explicit CREATE POLICY rules (such as USING (auth.uid() = user_id)). Without RLS enabled, anyone holding your public project URL and anon key can query or mutate exposed tables directly through /rest/v1/.
Is this Supabase RLS checker safe and strictly read-only?
Yes. ShipBastion performs strictly passive, SSRF-protected checks: it inspects public homepage HTML and up to 6 same-origin JS bundles, and at most sends a single read-only GET to /rest/v1/ for OpenAPI root metadata. It never queries table rows, never attempts writes, and never stores raw credentials.