Guide: data access
Supabase row-level security check: what it reads
Atrytone reads the database rules your app keeps in its migrations. It says which tables have row-level security off, and which rules let anyone, or any signed-in person, read or change every row. It reads your code, not your live database. Findings go under the map area “Data access”.
Last updated
What it reads
- Tables with row-level security off. Then anyone with your app's public key, which every visitor's browser has, can read and change every row.
- Rules with no condition. A rule that lets anyone, or every signed-in person, read or change all rows of a table.
- Views that skip the table's rules. A view that reads a table past its row security.
What it does not read
It reads your code, not the live database: if someone changed the live one by hand, it may differ. If you turned row-level security on in the Supabase dashboard instead of in a migration, the code does not show it.
What the fix does
The fix turns row-level security on for the table and adds rules so each person reaches only their own rows. It is made on a copy and waits for your yes.
Merging it changes your code, not your live database: apply the migration to your Supabase project (supabase db push, or paste it into the SQL editor) to close it there.
What the study found
Of 117 public AI-built apps that keep database migrations in the repository, 50 had a database rule that lets anyone change every row of a table (read on 28 October 2026). That is a rule in the code, not a proven break-in.
Is there a Supabase RLS check for Lovable apps?
Yes, and it reads any app the same way: the migrations in the repository, not the tool that wrote them. We say nothing about what those tools do.
Does it read my live Supabase database?
No. It reads the migrations in your code and says so on every finding.
Is a table that anyone can read always a problem?
Not if it is meant to be public, like a list of products. It is one for orders, messages or anything personal.