Skip to main content

One post tagged with "database"

View all tags

RLS (Row Level Security) — the wall your database needs that almost nobody builds

· 8 min read
Bruno Carneiro
Fundador da @TautornTech
Illustration representing Row Level Security protecting data by row in the database

There's a type of bug that doesn't break the build, doesn't show up in the logs, doesn't land in Sentry, but kills your product overnight: user A opening the application and seeing — out of nowhere — user B's data. Transaction, balance, tax ID, address, whatever. And the worst part: in almost every project where I saw this happen, the problem wasn't "a bug" in the code. It was the total absence of RLS in the database.

Today I want to talk about Row Level Security, which is literally the wall that separates one user's data from another's — within the same table.