← Blog · 21 October 2026

How to check Supabase Row Level Security in your Lovable or Bolt app (5 minutes)

Many apps built with Lovable, Bolt or Cursor store their data in Supabase. That works well, but there is one setting you should check today: Row Level Security (RLS).

Why this matters

Your app's public "anon" key sits in the code every visitor downloads. That is normal and expected. RLS is the thing that stops that key from reading every row in your tables. If RLS is off on a table, anyone who copies the key can read it, and sometimes change or delete it.

The tricky part: your app works exactly the same with RLS off. Nothing breaks, so nothing warns you.

Step 1: Find tables with RLS off

Step 2: Turn RLS on and add policies

Turning RLS on with no policies blocks everything, so your app may stop showing data. Add a policy for each action your app needs:

Check all four. A common mistake is getting "select" right but leaving "update" or "delete" open, or using a policy that just says true.

You can ask your AI builder: "Turn on Row Level Security for every table and add policies so each user can only read and change their own rows."

Step 3: Test while logged out

Step 4: Check again after every change

Every new table the AI adds needs its own RLS and policies. A table created next week can be open even if today's tables are fine. Re-check after each bigger change.

Quick answers

Is the Supabase anon key a secret? No. It is meant to be public. RLS is what protects your data, not hiding the key.

Is the service_role key a secret? Yes. It skips RLS completely and must never be in browser code.

Does Lovable check this for me? Lovable says its built-in Quick scan runs every time you publish and checks your database access rules, such as tables without row-level security. It is still worth testing the live app from the outside, logged out.

Want an outside check of your live app? Run a free one-time scan at Vibe-App Watchdog. It looks only at what any visitor can see, like headers, open files and exposed keys. It does not test your RLS, so do the steps above too.