© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
11 replies
e1a1

Is there a way to enable RLS for all new tables by default?

I am using Django to connect directly to the postgres database. Everything works fine, except for the fact that all new tables start with RLS disabled. Is there a way to enable RLS by default (with a deny all policy) for all new tables and then manually decide if I want to change the policy on a table by table basis?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

acidentaly deleted tables contents is there a way to revert?
SupabaseSSupabase / help-and-questions
5mo ago
new Branch is empty, does not have tables, RLS, buckets
SupabaseSSupabase / help-and-questions
6mo ago
Partition Tables and RLS
SupabaseSSupabase / help-and-questions
9mo ago
RLS Query referenced tables
SupabaseSSupabase / help-and-questions
3y ago