You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/supabase/README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,3 +94,11 @@ create trigger handle_updated_at before update on YOUR_TABLE_NAME
94
94
createtriggerhandle_updated_at before updateon YOUR_TABLE_NAME
95
95
for each row execute procedure moddatetime (updated_at);
96
96
```
97
+
98
+
99
+
## Notes (WARNING)
100
+
101
+
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.
102
+
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.
103
+
104
+
You can use `service_role` secret, but be aware that this will **bypass** RLS.
0 commit comments