Is My Supabase Storage Bucket Public?
Short answer: check the bucket in your Supabase dashboard. If it is designated as Public, anyone who has a file's link can open that file, with no login. That's fine for things like profile pictures or blog images. It's not fine for passports, invoices, contracts or anything else private.
Check your live app for free
Paste your link. The free summary usually takes under a minute.
See an example report (for example.org) · a real free scan of a test site, so you can see what you get
Where your files live
When you ask Lovable, Bolt, Cursor or similar to "let users upload a photo" or "add a document upload," the files may go into Supabase Storage. Storage keeps files in folders called buckets. Each bucket is either public or private, and that one setting decides who can download the files.
Public vs private: what Supabase says
Supabase explains a public bucket like this: "When a bucket is designated as 'Public,' it effectively bypasses access controls for both retrieving and serving files within the bucket. This means that anyone who possesses the asset URL can readily access the file."
And for private buckets: "When a bucket is set to Private all operations are subject to access control via RLS policies. This also applies when downloading assets. Buckets are private by default."
So buckets start out private. If yours is public, someone (or your AI builder) changed it.
Supabase gives these as good uses for public buckets: user profile pictures, user public media and blog post content. For private buckets, its example is "Uploading users' sensitive documents."
How to tell if a file link is public
Public files have a link that looks like this, with /object/public/ in the middle:
https://[project_id].supabase.co/storage/v1/object/public/[bucket]/[asset-name](Supabase: Serving assets from Storage)
If you upload a file in your app, then open its link in a private browser window and it loads, the file is public.
How to check your buckets
- Open your project in Supabase and go to the Storage page in the Dashboard.
- Look at each bucket. Note which ones are designated as Public.
- For each public bucket, ask: "Would I be OK if a stranger saw every file in here?"
- If the answer is no, make the bucket private.
You can also ask your AI builder to list them for you. Paste a prompt like this:
List every Supabase Storage bucket my app uses. For each one, tell me: is it public or private, what kind of files go in it, and where in my code files are uploaded and shown. Flag any bucket that holds private files (IDs, documents, invoices, anything a user wouldn't want shared) but is public. Don't change any code yet.How to lock down private files
If a bucket holds private files:
- Make the bucket private. Your app will then need to fetch files in a different way.
- Add RLS policies on storage. Private buckets use Row Level Security (RLS) rules on the
storage.objectstable to decide who can do what. Supabase says: "By default Storage does not allow any uploads to buckets without RLS policies." (Supabase: Storage Access Control) A common rule is "users can only see files they uploaded." - Show files with signed links. A signed link works for a set time and then stops. Supabase's
createSignedUrlmakes one. (Supabase: Serving assets from Storage)
A prompt you can paste:
Make my Supabase Storage bucket [bucket name] private. Add RLS policies on storage.objects so a logged-in user can only upload, view and delete their own files (for example, files in a folder named with their user id). Change my app so it shows these files using createSignedUrl with a short expiry instead of public URLs. Then tell me how to test that a logged-out user can't open a file link.Test it after. Log out, paste an old file link into a private window, and make sure it no longer opens.
Things to watch for
- Public still has rules for uploads. Supabase says that in a public bucket, "Access control is still enforced for other types of operations including uploading, deleting, moving, and copying." So check your upload and delete rules too, not just who can view.
- Old signed links can keep working. Supabase says: "You can't revoke individual signed URLs. To invalidate a specific one, delete, move, or rename the underlying object." (Supabase: Serving assets from Storage)
- Keep the service key off the front end. Supabase says: "Service keys entirely bypass RLS policies, granting you unrestricted access to all Storage APIs." It also says: "Remember you should not share the service key publicly." (Supabase: Storage Access Control)
- Your files aren't in your database backup. Supabase says database backups "do not include objects you store via the Storage API". Copy them separately. See Does my Supabase app have a backup?
What the rooGBotVC scan checks
Paste your URL in the box at the top of this page. The scan reads the HTML tags on the page you scan, the inline scripts on that page, and up to 15 script files served by your own site.
- If it finds your Supabase project address and public key, it shows "Supabase project and public key found: check your RLS" (info). That's your reminder to check your tables and your storage rules.
- If it finds a Supabase service_role key or secret key (
sb_secret_) in your public code, it flags it as critical. The titles are "Supabase service_role key exposed in public code" and "Supabase secret key (sb_secret_) exposed in public code".
The scan does not look inside your Supabase project. It can't see whether a bucket is public, and it doesn't test your storage rules or try to open your files. It doesn't run JavaScript, and it doesn't test logins, rate limits, billing or RLS. That part you check yourself, using the steps above.
Related reading
- Is my Supabase anon key safe to expose?: why the public key is OK, and why RLS matters.
- Is my Lovable app exposing data?: what a study of public Lovable apps found, and how to check your tables.
- Is your Supabase service_role key in your front-end code?: the key that skips every rule.
- Does my Supabase app have a backup?: including your uploaded files.
- Lock down who can read your data: a short tip on RLS.
The bottom line
A public bucket means anyone with a file's link can open it. That's fine for profile pictures and blog images. For private files, make the bucket private, add storage RLS rules, and show files with signed links that expire. Then paste your URL in the box at the top to check what your app shows the public.
Related guides
This is an automated, surface-level check of what your site shows the public. It is not a full security audit.