mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
docs: add note about using a service key with rls (#13100)
docs: add note about service key with rls Co-authored-by: joel@joellee.org <joel@joellee.org>
This commit is contained in:
1 parent
3559693469
commit
5e8bd8ed46
1 file changed
+3
@@ -328,6 +328,9 @@ Tip: Make sure to enable RLS for all your tables, so that your tables are inacce
|
||||
|
||||
Supabase provides special "Service" keys, which can be used to bypass all RLS.
|
||||
These should never be used in the browser or exposed to customers, but they are useful for administrative tasks.
|
||||
<Admonition type="caution">
|
||||
Initializing a client with a Service Key will not override RLS if a user token is set. If a user is signed in with a client, Supabase will adhere to the RLS policy of the user.
|
||||
</Admonition>
|
||||
|
||||
### Testing policies
|
||||
|
||||
|
||||
Reference in new issue
Block a user