Supabase Audit Finds Leftover Privileges in AI-Built AppSupabase Audit Finds Leftover Privileges in AI-Built App
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
An AI-built app passed every RLS test, but a live Supabase audit found leftover privileges and an undocumented function. Fixed: 28 → 11 privileges.
Shoaib's avatar
Passing every RLS test with extra grants still live is the classic AI-built app gap: the agent tests what it built, not what it left behind. A privilege audit belongs on every launch checklist.
Masaru's avatar
Exactly. The agent checks the policies it wrote, but nobody checks what the platform granted by default. What surprised me most: Supabase's default privileges re-grant them on every new table, so it isn't a one-time fix. I now revoke-then-grant in every migration. Do you add a privilege check to your launch checklist too?
Shoaib's avatar
It's going on mine now. SmashRank runs on Supabase too, and the default re-grant on every new table is exactly the kind of thing I'd have missed.
Masaru's avatar
Glad it helped! A quick way to see what's there right now (run it in the SQL Editor):
select table_name, grantee, privilege_type from information_schema.role_table_grants where table_schema = 'public' and grantee in ('anon', 'authenticated') order by table_name, grantee;
Anything...
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started