Check Supabase Storage File Access Before LaunchCheck Supabase Storage File Access Before Launch
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
Are your users' uploaded files public?
If your Lovable, Bolt or Replit app lets people upload files (avatars, receipts, documents), those files usually live in Supabase Storage. Worth checking before launch: can anyone with the link open them?
A quick check on your own app, with a test account and a fake file:
1. Upload a file as a signed-in test user. 2. Copy the file's link, open a private browser window (signed out) and paste it. If the link has /object/public/ in it, the bucket is public. 3. Sign in as a second test user and try to open or list the first user's files.
If the signed-out window or the second user can see the file, fix it. A public bucket serves files to anyone with the link. Keep private uploads in a private bucket and add per-user folder rules, so each user can only read and write their own folder.
Same rule as with your tables: the service_role (or sb_secret_) key skips your access rules, so it belongs on the server only, never in the browser.
If the test turns something up and you'd rather have it fixed, our Security Fix ($149) here on Contra covers RLS on every table, storage policies and a key scan.
PatchAndShip is not affiliated with Supabase.

patchandship.com

Is my Supabase storage bucket public? How to check and fix

Check whether your Supabase storage buckets are public, who can list files, and how to make private files private with policies and signed URLs.

Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started