News for hackers. Stuff that matters.
Re:"I vibe coded and shipped an app in three days. It got ha... by grumpymuppet on Monday June 02, 2025 @06:59AM (#44157535)
Were the database configurations "vibe coded"?

My understanding is the notion is about getting an application to "work" without any underlying theory of operation or evaluation of the imported context.

Re:"I vibe coded and shipped an app in three days. It got ha... by joshuanapoli on Monday June 02, 2025 @08:53AM (#44158308)
Supabase is really tough to make secure, and it is probably a poor choice if you are interested in vibe coding. Row Level Security is likely to be insecure if the author author doesn't have a deep understanding of Postgres or isn't paying careful attention to all of the generated code relevant to the database.
Re:"I vibe coded and shipped an app in three days. It got ha... by aitchnyu on Monday June 02, 2025 @10:21AM (#44159134)
Is there a low-code backend/full-stack which is secure by default? I remember some clunky UI to define filters and projection in Firebase. Can a Django/Laravel app weekend project get there before Supabase?
Re:"I vibe coded and shipped an app in three days. It got ha... by dghlsakjg on Monday June 02, 2025 @12:03PM (#44160244)
Secure by default? No such thing by virtue of the fact that security is case dependent.

That said, all of the full fat frameworks make it pretty easy to define what should and shouldn't be visible to what users, the use case that he has would not have been harder to do using rails, phoenix, django, etc as a backend, and it would have been very easy to control the failures that he had.

Re:"I vibe coded and shipped an app in three days. It got ha... by jjani on Monday June 02, 2025 @12:46PM (#44160694)
It doesn't have to be full fat, it can be literally anything as long as it provides a backend layer inbetween the DB and the FE. It can be a single Typescript file that uses literally whatever the LLM defaults to, probably Express given its training materials, or Hono for something more modern, or any of the 1000 other options.
Re:"I vibe coded and shipped an app in three days. It got ha... by jjani on Monday June 02, 2025 @12:43PM (#44160658)
Just "vibe coding" something minimal in a Cloudflare Worker, or even, ironically, a Supabase Edge Function that directly connects to the DB would 9 out of 10 times lead to something more secure than using RLS. The LLM will always default to RLS when using Supabase as that's what they promote the hardest in marketing materials, so that's what it's trained on.
Re:"I vibe coded and shipped an app in three days. It got ha... by TZubiri on Monday June 02, 2025 @01:20PM (#44161054)
Just write SQL queries, sanitize them, use unix users or selinux to restrict system users.

It has it's dangerous spots, and it's uncomfortable spots, but we pretty much know all about them already, and usage is heavily documented.

Or you can try ORM74 and hope it is faster and more secure than THE standard way. Gamble away.

Or maybe try Framework 74b which abstracts away the ORM

Re:"I vibe coded and shipped an app in three days. It got ha... by nottorp on Monday June 02, 2025 @10:40AM (#44159327)
> and it is probably a poor choice if you are interested in vibe coding

Pray tell, what is a good choice then?

.

.

... anything you already know yourself to secure so you can correct the "AI"

Re:"I vibe coded and shipped an app in three days. It got ha... by joshuanapoli on Monday June 02, 2025 @06:48PM (#44164088)
> anything you already know yourself

I think that this is the answer. Maybe someone who is great with Postgres Row Level Security will have an OK time with Supabase security, even if they are vibe coding. They wouldn't think of asking the AI for something that won't work.