BuildShipBBuildShip
Powered by
SleetzaS
BuildShip•2y ago•
15 replies
Sleetza

How to run RLS with Supabase?

Hey guys,
I made a web app with Flutterflow, Supabase and Buildship. I have RLS enabled and made policies to only allow authorized users to select, insert end update rows. My plan was to use the service_key role api key in my Buildship Supabase nodes to bypass RLS. But that does not work.
I found this on github; https://github.com/orgs/supabase/discussions/15860
What packages is Buildship using by default? Its not in the docs. Can it be that it uses auth-helpers/ssr? If so, how would you recommend I grant my backend acces to Supabase DB with RLS enabled?
GitHub
Performing administration tasks on the server side with the service...
By default, the auth-helpers/ssr do not permit the use of the service_role secret. This restriction is in place to prevent the accidental exposure of your service_role secret to the public. Since t...
Performing administration tasks on the server side with the service...
Solution
I changed the nodes to 'with token' equivalents, now they work.
Jump to solution
BuildShip banner
BuildShipJoin
Join founders, builders, devs using Low-code / No-code to create backend, APIs, scheduled Jobs, automation, AI workflows
7,971Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

How to implement a Login with Linkedin Auth flow in supabase?
Abhishek Sahni (Abhi)AAbhishek Sahni (Abhi) / ❓・buildship-help
13mo ago
Working with Supabase & Buildship
Christopher30CChristopher30 / ❓・buildship-help
15mo ago
Loop problem with supabase
Burak DönertaşBBurak Dönertaş / ❓・buildship-help
17mo ago
query join table with supabase
tiboTtibo / ❓・buildship-help
2y ago