The query hit the database, but only the rows the user could see came back. Everything else was invisible, locked behind rules the system enforced without fail. This is the power of MVP Row-Level Security: minimal, functional, and impossible to ignore.
Row-Level Security (RLS) is a feature that filters data per user or per role at the database level. It ensures that queries automatically return only the rows authorized for that session. Application code no longer needs to add complex filters. The policy is embedded in the schema, applied before results leave the database engine.
An MVP approach to Row-Level Security focuses on shipping the smallest viable version that enforces correct rules from day one. This means creating targeted policies, avoiding over-engineered abstractions, and writing them directly in the database’s native RLS syntax. Postgres, SQL Server, and other modern databases support these policies natively.