Hacker News

Favorites Setup
Comment by jappgar | original | Lovable apps expose passport details and more than 200K private messages
[−]jappgar · 2026-11-15 Sun 14:51 UTC · link
The whole premise of RLS is that you only have to think about data permissions in one place.

If you're up for maintaining that, and if you're willing to suffer the serious performance hits it inevitably entails, it can be a very convenient and secure option.

The problem is that most engineers (let alone vibe coders) are decidedly terrible at db design. The outcome here is entirely predictable.

[−]yakkomajuri · 2026-11-15 Sun 15:23 UTC · link
Agreed. Nothing inherently bad about RLS itself, but the way it was pushed forward in the Supabase model was always bound to be dangerous. Because like you say, it requires proper DB design, whereas the selling points of the Supabase model are simplicity and speed, so there's a bit of a mismatch here.
[−]bal00ns · 2026-11-15 Sun 18:55 UTC · link
> The whole premise of RLS is that you only have to think about data permissions in one place.

I’ve always preferred treating RLS as one layer of defense in depth, or an underlying safety net for when your backend code forgets to filter properly. Like wearing underwear just in case you get holes in your pants. I don’t think that’s Supabase’s philosophy though and that’s always bothered me.