© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3mo ago•
1 reply
Ridham_Chitre

Cannot enable RLS on storage.objects table for my project

URGENT HELP NEEDED

I have RLS Policy shown in first image for my public bucket named campaignImages.

However I am still being able to upload files to the bucket using anon key. But since role is only for authenticated, it should not allow.

Digging deeper, i found out that even though RLS Policy is created, the table storage.objects has RLS Policy disabled(Refer Image 2)

When through the query:

alter table storage.objects ENABLE ROW LEVEL SECURITY;

It gives me error that I need to be the owner

Refer image 3.

So anyone please guide me.

My main objective is to let all users view the image using public url but restrict upload to bucket based on my RLS Policy
1.jpg
2.jpeg
3.jpeg
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

Enable RLS on Storage.Objects
SupabaseSSupabase / help-and-questions
4mo ago
Cannot enable RLS policy for storage.buckets table
SupabaseSSupabase / help-and-questions
7d ago
No RLS on auth.users table on new project
SupabaseSSupabase / help-and-questions
13mo ago
RLS on related table
SupabaseSSupabase / help-and-questions
8mo ago