Enable RLS on Storage.Objects

Hello, I am unable to enable RLS on Storage.Objects which has left my files and images vulnerable and accessible to anyone. How can I get rls enabled on storage.objects urgently? Supabase ticket raised and no help. I am a pro customer.
1 Reply
garyaustin
garyaustin3d ago
RLS is enabled on storage.objects by default. The RLS policies you set up for buckets all rely on that. Did you create a public bucket? @Angus B You can also run this in the SQL editor to see if the 2nd column is true.
select relname, relrowsecurity
from pg_class
where oid = 'storage.objects'::regclass;
select relname, relrowsecurity
from pg_class
where oid = 'storage.objects'::regclass;

Did you find this page helpful?