Skip to content

Commit

Permalink
docs(supabase): add link to RLS
Browse files Browse the repository at this point in the history
Co-authored-by: Thor 雷神 Schaeff <[email protected]>
  • Loading branch information
devsheva and thorwebdev authored Jul 23, 2024
1 parent 54ef6fb commit 0816a16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/supabase/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ create trigger handle_updated_at before update on YOUR_TABLE_NAME

## Notes (WARNING)

Using the `anon public` key will lead to unexpected behaviour since RLS (Row Level Security) is enabled by default when creating the table, and will lock writing unless explicit permissions.
Using the `anon public` key will lead to unexpected behaviour since [RLS (Row Level Security)](https://supabase.com/docs/guides/database/postgres/row-level-security) is enabled by default when creating the table, and will lock writing unless explicit permissions.
When RLS is enabled without configuration, a [default-deny policy](https://www.postgresql.org/docs/current/ddl-rowsecurity.html#DDL-ROWSECURITY:~:text=If%20no%20policy%20exists%20for%20the%20table%2C%20a%20default%2Ddeny%20policy%20is%20used%2C%20meaning%20that%20no%20rows%20are%20visible%20or%20can%20be%20modified) is used.

You can use `service_role` secret, but be aware that this will **bypass** RLS.

0 comments on commit 0816a16

Please sign in to comment.