Guide
Check and fix open Supabase RLS on a Lovable app
MondayMedic checks for common public mistakes. It is not a full security audit, and a good score does not mean your app is safe.
Open row level security means a Supabase table can answer the public anon key. On a Lovable app, open each private table in the Supabase dashboard, turn RLS on, and replace a using (true) policy with a rule that checks the signed-in user. Then run the free MondayMedic scan. No issues found by our checks does not mean every table rule is finished.
Paste your policies into our free RLS checker.
What RLS means
Row level security is a switch on a Supabase table. When it is on, a policy decides who can read or write each row. When it is off, the public anon key in your frontend can read the table.
The anon key is not the secret
The anon key is supposed to be in the browser. The service role key is not. If the service role key is in the frontend, rotate it in Supabase and remove it from the app.
Look in Supabase
- Open the project in the Supabase dashboard.
- Open Table Editor and pick a table that holds private rows, such as profiles or orders.
- Turn on RLS if it is off.
- Open the policies. If a policy says
using (true)on a private table, that rule lets everyone through. Replace it with a rule that checks the signed-in user, oftenauth.uid().
Then run the free check
Paste the public app link into the MondayMedic checkup. If a private-looking table still returns rows, the policy is still too open. We do not change the database for you.
This is a starter note for a longer guide. It is not a full audit.
FAQ
What does open RLS mean on a Lovable app?
RLS is off, or a policy such as using (true) lets everyone through. The public anon key can then read the table.
Is the Supabase anon key the problem?
No. The anon key is meant to be in the browser. The table rules are what decide who can read each row.
How do I check after I change a policy?
Log out and ask the table with the anon key, then paste the public app link into the free MondayMedic scan. No issues found by our checks is not a full audit.