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!
2 Replies