PeekLok

Lovable: Open database tables

An “open” table is one that anyone can read or write without signing in, often because a policy says “allow all” or the table was made public while testing.

Free scan: check my app Just your web address. Results in seconds. No signup, no card.

Why it matters for your Lovable app

Lovable apps usually use Supabase for the database and login. Lovable has a built-in security scan, but it can’t sign in as two real users and compare what each one sees.

Strangers can scrape your data, fill tables with junk, or change prices and records.

How to check in five minutes

  1. List every table and who is allowed to read and write it.
  2. Look for policies using “true” or roles like “anon” or “public” with write access.
  3. Try loading the table’s data while signed out. If you get rows, it is open.

What PeekLok’s scan checks

PeekLok’s scan checks whether your Supabase tables return data to anyone using your public anon key. It does not test write access, so strangers adding, changing or deleting records is not checked yet. Use the check above for that.

Fix prompt to paste into the Lovable chat

Audit every database table. For each one, tell me who can read, insert, update and delete. Remove any rule that lets signed-out users write, and any “allow all” read rule on tables with personal data. Keep public only the tables that are meant to be public, like a product list. (This is a Lovable app using Supabase. Keep secrets in Supabase Edge Function secrets.)

After the AI makes changes, test again with two accounts. AI fixes can look right and still miss a table or route.

Make it a habit: every time you or the chat adds a new table, check that RLS is on for it and that its policies only let each user reach their own rows. New tables are the easiest ones to miss when you build fast.

Sources

Related

Same issue in other builders:

All Lovable security guides · Open database tables explained

Get a free scan

PeekLok checks your live app for secret keys in the page code, a Supabase service or anon key showing, Supabase tables anyone can read with the public key, and five browser security headers. If your app uses Supabase login, you can add two test logins and it checks whether one user can see the other’s data. Only scan apps you own. First scan free. Weekly re-checks will be $12 US a month once payments open.

Start my free scan