Issues Using RLS with Supabase Through Drizzle

Hi everyone, Does anyone know how to use RLS with Supabase via Drizzle? I was really excited to see that it's finally supported, but unfortunately, it’s not working for me. After migrating the table, I added .enableRLS()—this part works fine, and I can see on the Supabase dashboard that RLS is enabled for that table. However, I’m still able to query the data without defining any policies. Shouldn't all operations (querying, updating, etc.) be blocked by default in this case? I’ve attached a screenshot of my code—any advice would be greatly appreciated!
No description
No description
No description
No description
2 Replies
potato
potato2w ago
Hey, I am having similar issues, but with my policies not migrating properly You have to add a policy where USING = false
Ganbatte
GanbatteOP2w ago
First of all, thanks for your response. Could you please describe exactly what you mean? Sorry, I'm just very new to backend stuff.
Want results from more Discord servers?
Add your server