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:
Joel Leeandjoel@joellee.org authored and GitHub committed 2023-03-20 16:15:10 +08:00
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