© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•16mo ago•
3 replies
Ganbatte

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!
rls.png
query.png
index.png
drizzle.config.png
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Issues with supabase inserts with drizzle
Drizzle TeamDTDrizzle Team / help
3y ago
Why Isn't RLS Working with Drizzle and Supabase?
Drizzle TeamDTDrizzle Team / help
15mo ago
Using `query` with RLS.
Drizzle TeamDTDrizzle Team / help
12mo ago
Middleware Issues in Next.js Using Drizzle, Supabase, and NextAuth
Drizzle TeamDTDrizzle Team / help
16mo ago