AI built the app. Nobody locked the data.
The screens worked. The Supabase database could still answer reads from the public internet, because row-level security was never turned on. The person prompting the AI had not decided who may read the data.
The person prompting forgot security
People used AI to build an app. The screens worked and the records saved. The database was Supabase, and row-level security was never turned on. The human prompting the AI forgot to decide who may read the data.
If row-level security is off, the database can answer reads from the public internet. Records the business treated as private can be read by anyone who can reach it.
What to turn on
Wiz has published a write-up of an app built with AI where this setting was left off. The detail is on their page.
The fix is to turn row-level security on and decide who may read each table. A customer’s own records, the records a member of staff needs for their job, and anything that should stay inside the business are separate decisions.
Finishing the app
The Code Bureau builds custom software and apps for businesses. Finishing an AI draft includes who can read the data, not only the screens that already work.
Tell us what the app is for, and what you already have. We will say whether finishing it is the right job before we start. The source code is yours from day one.