Turn on Row Level Security for tables your AI agent created

UpGuard finds 16,326 Supabase databases with tables anyone can read · Web · Sep 2026

What happened

UpGuard checked about 300,000 sites that use Supabase and found 16,326 databases with publicly readable tables, over half with signs of personal data. Tables created through the API, the route AI coding agents use, do not get RLS switched on by default.

The honest numbers

As stated by the source. Not independently verified.

The lesson

After an AI agent creates tables, open the Supabase dashboard, enable RLS on every table and add policies, then test reads with the anon key while logged out.

Fix prompt for your own AI tool

Copy this into your own AI tool (Cursor, Lovable, Claude Code, Bolt…). It's general guidance written by us. Review what the AI suggests before applying it.

I'm a beginner building an app with Supabase. Please review how login, sessions and access control work in my project. 1) Explain in plain English how a user signs in, how long a session lasts and what happens on logout. 2) Check that sessions expire, that logout really ends the session on the server, and that every API route and database query checks the user is allowed to see that data (not only the UI). 3) List each problem you find with the file name and a suggested fix, most serious first. 4) Give me a short manual test plan: log in, log out, wait for expiry, and try to open another user's data with a second account. Don't change anything until I've approved your plan. Never ask me to paste API keys, passwords or .env contents; tell me where to check them myself.

Why this keeps happening: auth, sessions & access

AI tools generate sign-up and login screens quickly, but the hard parts are invisible in a demo: session expiry, real logout, password reset, and checking on the server that a user may see the data they ask for.

A quick checklist before you ship

More on this: every auth, sessions & access story and our related guide.

Tools involved

Supabase stories, Claude Code stories, Codex stories

Related stories

Source: original post on Web ↗. Summarised in our own words; numbers are as stated by the source. Browse all stories.

The Honest Build. Real stories, not hype.

Every week: real stories of what building with AI actually took, the one lesson worth keeping, and the security slip-ups to avoid. Free, unsubscribe anytime. Weekly, every Friday.