service role can't access storage objects

I have a bucket with RLS that allows anon to insert, but only authenticated users to select, update or delete. Anon portion is working properly. Attempting to select files in bucket via the service role returns undefined:

await supabase.storage.from('uploads').list('folder')

No error is thrown. There are definitely files in the "uploads" bucket. I've attempted this with and without RLS policies for the service role with no success in either scenario.

The service role key I'm using does successfully retrieve data from a table that has RLS set to only authorized users, so I know it's not a problem with the key.

Is there some setting I'm overlooking? I thought service role was a super user and could bypass all policies.
Was this page helpful?