Are uploaded files in my Lovable app public? A storage bucket check
Short answer: only if they sit in a public bucket, or your storage rules are too loose. Profile photos, invoices, ID scans and PDFs that people upload to a Lovable app are kept in storage “buckets”. Lovable's docs say files in a public bucket “are accessible by anyone with the URL.” Here are five checks to do before you share your link.
Free scan: check my app Just your web address. Results in seconds. No signup, no card.
1. See which buckets are public
In your Lovable project, open More → Storage. Each bucket card shows whether it is Private or Public. Private is the default.
A public bucket is fine for things you want everyone to see. Supabase, which Lovable's built-in backend is based on, gives user profile pictures and blog post images as examples. It is not fine for documents, receipts, contracts, ID photos or anything a customer would expect to stay private.
If your project uses your own Supabase project instead of Lovable's built-in backend, check the buckets in your Supabase dashboard under Storage. Supabase says buckets are private by default, and a public bucket lets anyone with a file's URL download it.
2. Leave “Block public storage buckets” switched on
Lovable has a workspace setting called Block public storage buckets. Its docs say it is enabled by default on all plans, and while it is on, all new buckets are forced to private. A workspace owner or admin can turn it off in Privacy & security. If someone on your team turned it off to get a feature working, ask whether that bucket really needs to be public.
3. Check that private files are tied to their owner
Private does not automatically mean “only the person who uploaded it”. Lovable's docs say private files are only accessible to users with the correct permissions, controlled by row level security policies. (For database tables, the same idea is covered in Lovable: Supabase RLS turned off.) To read them, go to More → Database, select Manage, then Policies, and filter by Storage.
Look for a rule that limits each file to its owner, for example a check on the file's owner or a folder named after the user's ID. Supabase's own examples do exactly this. A rule that lets any signed-in user read the whole bucket means every customer can open every other customer's files. The policies view is read-only, so ask Lovable in the chat to change a rule.
4. Test it as two different people
Make two test accounts, A and B. Upload a file as B. Signed in as A, try to open B's file, for example by changing the file name or folder in a link. Then open the same link in a private browser window while signed out. If either works for a private file, your rules are too loose.
Also know how sharing links behave. In Lovable's Storage view, Copy URL gives a permanent public URL for a public bucket, and a temporary signed URL that expires after one hour for a private bucket. Supabase notes that signed URLs stay valid until they expire, even if you change your auth keys, so keep expiry times short in your app.
5. Keep the service role key out of the browser
Supabase's docs say the service key entirely bypasses storage access rules. If that key is in your front-end code, anyone can download every file, whatever your bucket settings say. See Lovable: exposed anon or service role key for how to check.
Fix prompt to paste into the Lovable chat
List every storage bucket in this project and say whether it is public or private, and what kind of files it holds. Make any bucket that holds personal or customer files private. For each private bucket, make sure the storage policies only let a signed-in user read, upload, update and delete their own files, for example files in a folder named with their user ID. Where the app shows a private file, use a short-lived signed URL. List every bucket and policy you changed.
Lovable's own Storage docs suggest a prompt along these lines for new features: “Keep uploads private, so each person only sees their own files.” After the AI makes changes, test again with two accounts. AI fixes can look right and still miss a bucket.
What to fix first
- Any public bucket holding personal or customer files.
- Any private bucket whose rules let every signed-in user read every file.
- A service role key visible in your page code.
Sources
- Lovable docs: Storage
- Lovable docs: Privacy and security settings (Block public storage buckets)
- Lovable docs: Control who can access your app's data
- Lovable docs: Built-in backend
- Supabase docs: Storage buckets
- Supabase docs: Storage access control
- Supabase docs: Serving downloads and signed URLs
Checked against Lovable's and Supabase's documentation on 28 Oct 2026. Lovable changes its product often, so menu names may move. PeekLok is not affiliated with Lovable or Supabase.
Want a second pair of eyes?
PeekLok's free check looks for secret keys in your page code, Supabase keys and tables anyone can read, and missing security headers, with an optional two-user data test. It doesn't check storage buckets yet, so use the steps above for those. First check free. Weekly re-checks will be $12 US a month once payments open.
More: All Lovable guides · Lovable: one customer can see another’s data · All guides
