What is row-level security?
Row-level security is a set of rules inside a database that decides who can see or change each row. With it, people only reach the rows they’re allowed to.
An example
Two people use your notes app. Without row-level security, one could load the other’s notes straight from the database. With a rule on the notes table, each request returns only that person’s notes.
Where you’ll meet it
- Design your first table · Save data with Supabase
- Set who can read and write · Save data with Supabase
- Save and load data in your app · Save data with Supabase
- Test with two accounts · Save data with Supabase
- Connect Clerk to Supabase · Add sign-in with Clerk
- Supabase or Firebase: which database fits my product? · Databases
- What’s the fastest way to secure my product? · Security
- Why does my product work on my computer but not online? · Debugging
Related tools
- Supabase · Give your app a database, user accounts, and a place to store uploaded files such as profile photos.