Is your Lovable app safe for client data? The security checklist to run before you launch
By Mujidah Sakibu · 25 November 2026 · 7 min read
You've been testing your app with your own account for weeks. You log in, you see your data, you upload a file and it shows up where it should. So you're about ready to send the link to your first clients.
And then you stop, because they're going to put real information in there - bank statements, passports, session notes, whatever your business runs on - and you have no idea whether the person who signs up after them can see it.
That worry is the right one. Most AI-built apps that leak data don't have a bug you'd ever notice from your own account. The app looks perfect from where you sit, because you're the only person in it.
Why this happens in Lovable apps
Lovable builds your screens fast and connects them to a Supabase database. The screens decide what you see. The database decides what anyone is allowed to read, and those rules only exist if the AI wrote them, and only work if somebody checked them. When the rules are missing or too loose, any logged-in user - and sometimes anyone who has your app's address - can read rows that belong to someone else, even if your screens never show them.
This isn't a rare edge case. In 2025, security researchers found a long list of Lovable-built apps exposing their users' data for exactly this reason, and it's the most common gap I see when service providers bring me their apps.
What it looked like in a real app
In Cohort 1, Oyinda was building a portal where her clients upload financial documents for her bookkeepers and accountants to work on. Everything looked right from her admin account. Then we logged in as a test business owner and opened the History page, and it showed activity from every company in the app, not just theirs.
It was one missing rule, and no client ever saw it, because we caught it in testing with a second account before anyone real was invited. That second account is the first thing on the checklist.
You're probably thinking Lovable handles this for you. It handles some of it. Lovable has a built-in security scan, and Supabase has its own Security Advisor, and both will flag the obvious gaps. Neither of them knows that your accountant shouldn't see another firm's files, or that a client shouldn't see another client's session notes. Those are your business rules, so checking them is your job.
The checklist
1. Test with a second account
Create 2 test clients. Log in as client A and add some data and a file. Then log in as client B and go through every page - lists, search, history, dashboards, anything that shows more than one record. Copy the address of one of client A's records and open it while logged in as client B. If client B can see anything of client A's, stop and fix it before you go further.
2. Turn on row level security for every table
Row level security (RLS) is the set of rules that decides which rows each user can read and change. In your Supabase dashboard, open the Table Editor. Any table marked as unrestricted or with RLS disabled can be read by anyone holding your app's public key, and that key is in your app's code for anyone to find.
Prompt to try in Lovable: "Enable row level security on every table, and add policies so each user can only read and edit their own rows. Staff roles should only see the clients assigned to them. List every policy you created." Then run test 1 again, because the AI will tell you it's done whether it worked or not.
3. Run both security scanners
Run Lovable's security scan, then open Advisors in your Supabase dashboard and run the Security Advisor. Fix every error before launch and read every warning. If you don't understand a warning, paste it into Lovable and ask what it means for your app specifically, before you ask it to fix anything.
4. Keep roles where users can't change them
If your app has roles - client, bookkeeper, coach, admin - they need to live in a separate table that users can't edit, and your database rules need to check them. Hiding the admin button only hides the button. The data behind it is still there for anyone who asks the database directly, and asking directly is easy.
5. Make file storage private
Supabase Storage buckets can be public or private. In a public bucket, anyone with a file's link can open it, no login needed. Client documents belong in a private bucket, with storage rules that match your table rules, and with links that expire when you need to share a file.
6. Keep secret keys on the server
Your Supabase anon (or publishable) key is meant to be public. Your service_role (or secret) key, your Stripe secret key and any AI API keys are not. They belong in Supabase secrets and are only used inside edge functions, never in the code that runs in your client's browser. Ask Lovable to search the project for any secret key used in the frontend, and check your GitHub repo for keys starting with sk_ or labelled service_role.
7. Decide who can sign up
If your app is for your clients only, turn off public sign-ups in your Supabase authentication settings and invite people instead. Turn on email confirmation, and make sure there's a working forgot-password flow - Oyinda's app didn't have one at first, and it's the first thing a real client will need.
8. Add a privacy policy and terms, accepted at sign-up
Your clients are trusting you with their information, so tell them what you collect, why, where it's stored and how to ask for it to be deleted. Link both documents from the sign-up page and have people tick a box to accept them. Have a professional review them if you handle sensitive or regulated data.
9. Know where your data lives and how you'd get it back
Check which region your Supabase project is hosted in, because if your clients are in the UK or EU, keeping their data in a UK or EU region makes your privacy obligations simpler. Then check what backups your Supabase plan includes before you depend on them, and do one test export of your data so you know you can.
What it costs to skip this
If a client finds another client's information in your app, you're not filing a bug report. You're emailing every client to explain what happened, you're answering the ones who leave, and in the UK and EU, a personal data breach that puts people at risk has to be reported to the regulator within 72 hours. That's the client portal you built to look more professional, now the reason a client stops trusting you with their files.
Running this checklist takes an afternoon. When it's done, you know exactly what each person sees in your app, because you've logged in as them and looked, and you can send that invite without lying awake wondering.