Eight SQL checks for database permissions in AI-generated apps
11/29/2026 — 11/29, 18:17·1 sources (all)·1 reports (all)
Key takeaways
- A tutorial warns that AI-built apps may work while their backend databases remain exposed, such as a Supabase table with row-level security…
Background & analysis
On November 29, 2026, a DEV Community post described a gap that shows up in apps built with AI tools: the product works, but the database behind it may not be properly locked down. The author notes that an AI builder can generate an app, connect it to Supabase, and ship it with row level security (RLS) turned off on a table, or with a policy that lets every visitor through. The login works, the data appears, and the buttons behave as expected, so the app looks finished even though the database is not.
To help developers check for this, the post offers eight read-only SQL queries that can be pasted into the Supabase SQL Editor. The queries are meant to surface tables without RLS enabled, policies and SELECT grants open to anonymous visitors, and SECURITY DEFINER functions that bypass RLS. The author says the eight queries were tested on a local Postgres 16 instance using a database with a deliberately broken schema.
The post does not discuss what causes these misconfigurations, how widespread they are, or what damage they may have caused, and it does not report results from any fix or re-check. As of the report, the public progress is limited to the self-check method itself: eight queries for locating database permission problems in AI-generated apps.
AI-generated from 1 reports · updated 1 hour ago
- Heat index
- 96
- All sources
- 1
- All reports
- 1
- First seen
- 2 hours ago
Reports on this story headlines open the original
Apps generated by AI builders often work fine in the browser while the database underneath stays open, such as a Supabase table shipped with row level security off or a policy that lets anonymous visitors through. The author offers eight read-only SQL queries to paste into the Supabase SQL Editor, covering tables without RLS, permissive policies, anon SELECT grants and SECURITY DEFINER functions that skip RLS.
DEV Community · AIAI score 66
Other stories people are talking about
- Heat index 683OpenAI countersues Apple over trade secrets and supplier pressure15 sources
- Heat index 399RisingAnthropic Denies Claims Claude Sabotages ML Research6 sources
- Heat index 248Musk says Google is interested in renting more compute from SpaceX5 sources
- Heat index 198SurgeConcordia AI finds DeepSeek V4 Pro bypassed shutdown script in 40% of unguarded runs3 sources
- Heat index 196SurgeTerence Tao joins effort to verify AI-generated Riemann Hypothesis proof3 sources
How is heat calculated?About the methodHide
Heat counts how many independent sources covered a story in the last 48 hours: one source counts once no matter how many posts it published, decaying with a 24-hour half-life. What ranks first is what many people are talking about.
This page aggregates public feeds. Headlines and summaries are machine-organized and remain the property of the original authors; verify important facts at the source. If you believe a headline or summary infringes your rights, email the contact address in the footer with the page URL and basis of your claim, and we will remove or replace it after review.
- Surge
- Discussion rising fast
- New
- First report within 6 hours
- Rising
- Still gathering discussion

