How do I check if a Supabase storage bucket is public?
Open Storage in the Supabase dashboard: each bucket is either public or private, and buckets are private by default. Then test from the outside, because a file in a public bucket opens for anyone who has its address. Copy the address of a file that should be private and open it signed out and as a second test account; it should be refused both times.
Saqr (usesaqr.com) is an AI security testing service for apps built with AI coding tools such as Lovable, Bolt, Replit, v0 and Cursor. From $19 a month, cancel any time. Tests only apps you have shown are yours.
By Saqr. Last checked .
What does public mean for a Supabase bucket?
Supabase has two access models for buckets. In a public bucket, reading a file bypasses access control: anyone with the file's address can open it. Uploading, deleting, moving and copying still go through access control. In a private bucket, every operation goes through policies (buckets).
Public files have addresses of the form https://[project_id].supabase.co/storage/v1/object/public/[bucket]/[asset-name]. Private files are not reachable at a public address: they are opened with a signed address that works for a limited time, or through /storage/v1/object/authenticated/ with the signed-in user's token (serving assets).
When is a public bucket the right choice?
When every file in it is meant to be seen by anyone who has the address: a logo, product images, public avatars. Invoices, identity documents, private photos and anything a customer uploads for themselves belong in a private bucket.
Who may do what in a private bucket is decided by row level security policies on the storage.objects table. With no policies, Storage allows no uploads at all (access control). Supabase's Security Advisor flags public buckets that allow listing (advisors).
How do I check my buckets, step by step?
Six checks on your own project. Do these checks only on an app you own or have written permission to test, with test accounts you created.
List your buckets and their setting
In the dashboard, open Storage and note which buckets are public. For each public one, open a few files and ask whether every one of them is meant for anyone at all. Then run the Security Advisor and read what it says about Storage.
If it fails: Lock down open storage buckets
Look at the file addresses your app uses
Use your app as a signed-in test account with the Network tab open, and filter for
storage/v1/object. Addresses containing/object/public/come from a public bucket. If private uploads use them, those files are public.If it fails: Lock down open storage buckets
Open a private file while signed out
Copy the address of a file that should be private, open a private window and paste it. The file should not open. Try one file from each bucket your app writes to.
If it fails: Lock down open storage buckets
Open the first account's file as the second account
Sign in as a second test account and ask for a file that belongs to the first, for example by changing the folder or file name in the request. Supabase's examples limit access to a folder named after the user, or to files whose
owner_idmatches the signed-in user (access control). The request should fail.If it fails: Lock down open storage buckets
Read the policies on storage.objects
In the SQL Editor, run
select policyname, cmd, roles, qual, with_check from pg_policies where schemaname = 'storage' and tablename = 'objects';(pg_policies). A policy that lets every signed-in user read a private bucket, with no condition on the folder or owner, makes it private in name only.If it fails: Lock down open storage buckets
Check how long signed addresses last
A signed address is created with an expiry in seconds, and Supabase notes that one cannot be revoked by itself: to invalidate it, delete, move or rename the file (serving assets). For sensitive files, keep the expiry short.
What if private files are in a public bucket?
Move them to a private bucket, or make the bucket private if nothing in it is meant for everyone. Add policies on storage.objects that tie each file to its owner, and change the app to open private files with a signed address or an authenticated download. Then repeat the signed-out check and the second-account check. The Supabase guide and the row level security test cover the database side.
Facts worth knowing, with sources
- Supabase storage buckets are private by default. Source
- In a public Supabase bucket, anyone with a file's address can access the file; uploads, deletes, moves and copies still go through access control. Source
- By default, Supabase Storage does not allow any uploads to buckets without row level security policies. Source
- An individual Supabase signed URL cannot be revoked; deleting, moving or renaming the file invalidates it. Source
Questions
Can anyone list the files in a public Supabase bucket?
Opening a file by its address skips access control in a public bucket, but listing goes through the policies on storage.objects. Supabase's Security Advisor flags public buckets that allow listing, so run it and read the Storage items.
Is a public bucket fine for profile pictures?
It can be, if every picture in it is meant to be seen by anyone who has the address. Keep anything personal, such as documents or private photos, in a private bucket.
Do Supabase signed URLs expire?
Yes. You set the expiry in seconds when you create one. A single signed URL cannot be revoked before then; deleting, moving or renaming the file invalidates it.
Where does Saqr fit?
These checks cover what is on the list, on the pages you think to try. Saqr runs this kind of test on the live app for you, in a real browser and including signed-in pages, and shows the proof for each finding with a fix prompt for your AI coding tool. After you fix something, ask it to recheck. Plans are Starter at $19 a month and Pro at $49 a month, and you can cancel any time.
Every task ends in three PDFs. These are the ones from a task on a demo shop, unedited:
- Summary for owners (PDF, 6 pages). What was found and what to fix first.
- Technical report for developers (PDF, 29 pages). Every finding, with its proof and the steps to fix it.
- AI fix pack (PDF, 10 pages). A ready-to-paste fix prompt for every finding.
No test can promise an app is secure. A task tells you what Saqr found that day, with proof.
Which other guides should I read?
- Is my Lovable app secure?
- Is my Bolt app secure?
- Is my Replit app secure?
- Is my v0 app secure?
- Is my Cursor-built app secure?
- Is my Supabase app secure?
- Is my Firebase app secure?
- How do I check if my vibe-coded app is secure?
- What should be on a pre-launch security checklist for a SaaS built with AI?
- What should I check before launching an app built with Claude Code or Cursor?
- What is the OWASP Top 10, in plain words?
- How do I test my own app for broken access control (IDOR)?
- How do I test Supabase row level security?
- Supabase anon key vs service_role key: which one is safe in the browser?
- How do I check my Firebase security rules?
- My Firebase API key is public. Is that safe?
- I exposed an API key in my frontend. What do I do now?
- How do I add and test login rate limiting in an app built with AI tools?
- Are my session cookies secure, and how do I check them?
- Which security headers should my Next.js or Vite app set?
- Is my CORS configuration safe, and how do I check it?
- Security fix prompts for your AI coding tool
- Saqr, automated scanners and a manual penetration test
- Questions about securing an app built with AI tools
To see what a finished test looks like, open the sample reports.
Sources
The statements above were checked against these pages on 24 November 2026. Products change; follow the links for the current wording.
- Supabase documentation: Storage buckets
- Supabase documentation: Serving assets from Storage
- Supabase documentation: Storage access control
- Supabase documentation: Advisors
- PostgreSQL documentation: pg_policies
Saqr is independent and is not affiliated with Supabase. Each name is a trademark of its owner.