© 2026 Hedgehog Software, LLC

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

Why Isn't RLS Working with Drizzle and Supabase?

Hi everyone,

When I enable the new RLS (Row-Level Security) feature on Drizzle and Supabase and migrate, I can see it applied, but it doesn't seem to work as expected. Unfortunately, all data is still accessible, even though the default behavior should block access if no policies are defined.

Do I need to write some specific queries with Drizzle for RLS to function properly?
Or is there a different way to connect to Supabase to make it work?

I'd be very grateful if anyone could help. Thanks in advance!
image.png
code.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 Using RLS with Supabase Through Drizzle
Drizzle TeamDTDrizzle Team / help
16mo ago
Drizzle with self hosted supabase not working
Drizzle TeamDTDrizzle Team / help
2y ago
RLS doesn't work when managing policies with Drizzle?
Drizzle TeamDTDrizzle Team / help
12mo ago
drizzle-kit pull not working (freezes) with supabase
Drizzle TeamDTDrizzle Team / help
7mo ago