How to check if your Supabase tables are exposed

Your Supabase public (anon) key is meant to be in your front end. What protects your data is Row Level Security (RLS). If it's off, anyone with that key can read the table.

Step 1: check Row Level Security

In the Supabase dashboard, open each table. RLS should be enabled on every table in the public schema. Supabase also flags tables without RLS in its Security Advisor.

Step 2: check the policies

RLS on with a policy that allows everyone to read is the same as RLS off. Policies should usually limit rows to the signed-in user, for example where the row's user ID matches the signed-in user.

Step 3: check for secret keys in your site

Open your live site, view the source and search the JavaScript for "service_role" and "sb_secret_". Those keys skip RLS completely and must never be in front-end code. If you find one, rotate it in Supabase straight away.

Step 4: test with a second account

Make a second test account and try opening the first account's records, for example by changing an ID in the address bar. You should get nothing back.

Only test apps you own. Our check tests what your public key can read, read-only, and we never keep any data we see.

Want us to look? Get a free mini-check (3 quick findings by email), or see pricing: £79 for the full check, £149 with the fixes done for you.

Related guides

Read-only advice. Only check apps you own or control. Not a penetration test, and no check can guarantee an app is secure.