# Row-level security

> Row-level security is a database feature, in PostgreSQL and so in Supabase, that decides for each row which signed-in users may read or change it, enforced by the database itself.

Source https://rareagentics.com/glossary/row-level-security

## Why does it matter to a buyer?

In Supabase apps it is the main thing standing between one customer and another’s data, because the browser talks to the database directly. Apps built fast with AI tools often have it missing or written too broadly.

## An example

For example, a policy on an orders table can say that a signed-in user may read only the rows that carry their own user id.

## Related terms

- [Anon key](https://rareagentics.com/glossary/anon-key)
- [Service role key](https://rareagentics.com/glossary/service-role-key)
- [Security review](https://rareagentics.com/glossary/security-review)
- [AI-built app](https://rareagentics.com/glossary/ai-built-app)

---

Rare Agentics is a UK software and AI agent engineering firm based in London. Rare Agentics Limited, company number 17494524. Contact hello@rareagentics.com or https://rareagentics.com/contact. Book a call at https://rareagentics.com/book-a-call.
