r/artificial • • 1d ago

Discussion Vibe-coded apps keep leaking data. Should AI coding tools refuse to deploy without auth?

Reportedly a majority of scanned Supabase apps had open reads, and Moltbook leaked 1.5M tokens. My own app calls Claude and Gamma's API. The keys were the first thing I moved server-side.

Should tools like Lovable or Cursor block deploys that have no row-level security? Or is that the developer's job, full stop?

10 Upvotes

6 comments sorted by

2

u/karimnasser2233 1d ago

I build small Telegram bots, and I think the tools should at least refuse or warn very loudly before deploying without auth. Most people using vibe-coding tools aren't developers — they don't know what row-level security is or that their API keys are exposed. Blocking insecure deploys by default, with a clear opt-out for people who know what they're doing, seems like the reasonable middle ground.

2

u/GuyGotThis 1d ago

170 of 1,645 lovable apps had tables you could read with just the public key (CVE-2025-48757). lovable's scanner only checked that an RLS policy existed, not that it worked. a deploy check that doesn't actually try the data logged out won't catch that

1

u/Chance_Bandicoot8104 20h ago

I don’t think you can put the burden of this onto the AI builders like Lovable. Although, it should be clearly disclosed that apps do not have auth, access controls, etc. by default. 

An open-source project I’m working on (Pando, https://github.com/trypando/pando) DOES put auth in front of every app, and has many other benefits, like scanning for security, but it has a clear audience, which is enterprise. 

Lovable and Cursor are not just enterprise tools, so putting with in front of everything may turn away hobbyist devs and vibe coders. There are clear benefits of course, but not everyone values that the same. 

1

u/Finbro789 7h ago

Both, but the defaults need to shift. "Developer's job, full stop" ignores that many people shipping with Lovable or Cursor have never heard of RLS, and the tool is what told them the app was ready.….Hard-blocking deploys is too blunt, since plenty of tables are meant to be public and a blocker that cries wolf gets ignored. Better: RLS on with deny-all by default when a table is created, and a loud pre-deploy check that flags open tables, writable anon keys, and secrets in client code, with explicit confirmation required for each. "Deployed" shouldn't imply "safe."……I'm a solo dev with an app calling Claude and Gamma, and moving the keys server-side was my first move too. But I only knew to because I'd read about it. Safety shouldn't depend on reading the right blog post before your first deploy

1

u/Weekly_Geologist7837 5h ago

I do marketing for Gamma, so take this with that in mind. i'd want it to show me what's exposed before deploying. a plain "are you sure?" popup, i'd click right past it.