Guides · VibeVigil
Is My Lovable App Secure? A 30-Minute Check Before You Launch
A plain-English pre-launch security checklist for apps built with Lovable, Bolt, v0 or Cursor: keys, Supabase RLS, user-to-user data, file uploads, admin pages, payments, AI costs and headers. Each step links to a full how-to and ends with a fix prompt for your coding agent.
Not sure your app is safe? Run a free scan first.
VibeVigil checks your live app for exposed keys, Supabase tables a stranger can read, missing security headers, SSL problems and downtime. Every issue comes with a ready-to-paste prompt for your coding agent.
Scan my app for free → (only scan apps you own)
You built an app with Lovable, Bolt, v0 or Cursor. It works. People can sign up. Now you're asking the right question: is it safe to put real users in it?
Nobody can answer "yes, 100%" for any app. But most leaks in AI-built apps come from the same short list of mistakes. This checklist walks you through each one in plain words. You don't need to be a developer.
Only test apps you own.
The short answer
Your app is in good shape for launch if all of these are true:
- No secret keys are in the browser. Only keys that are meant to be public (like the Supabase anon or publishable key) show up in your site's code.
- Every Supabase table has RLS on, with policies that check who the user is.
- User B can't see user A's data, even by changing an ID in the URL or request.
- Private files are in a private bucket.
- Admin pages are checked on the server, not just hidden in the menu.
- Payments are confirmed on the server, with a verified Stripe webhook.
- AI features have a per-user limit and your AI provider has a spend limit.
- Your site sends basic security headers and has a valid HTTPS certificate.
- No
.envor.gitfiles can be downloaded from your live site.
Below is how to check each one, with a link to a full guide.
Before you start: what you need
- Your live app URL.
- Two test accounts you made yourself (call them User A and User B).
- A private (incognito) browser window, so you can test while logged out.
- Your Supabase dashboard, if your app uses Supabase.
1. Look for secret keys in your public code (5 min)
Open your live app. Press F12, go to Sources (or Network), and search the JavaScript for words like sk_live, sk-, service_role, secret and OPENAI_API_KEY.
- The Supabase anon or publishable key is fine in the browser. It is designed to be public, as long as RLS is on (Supabase: API keys).
- The Supabase service_role or secret key, Stripe secret keys and AI provider keys must never be in the browser.
If you find one, rotate it first, then move the code that uses it to the server.
Full guides: How to check if your app is leaking API keys and How to rotate a leaked API key.
2. Check that RLS is on for every table (5 min)
In Supabase, open the SQL Editor and run:
select tablename, rowsecurity
from pg_tables
where schemaname = 'public'
order by tablename;Any row with rowsecurity = false is a table that anyone with your public key may be able to read or change. Turn RLS on and add policies.
Also look at Advisors in your Supabase dashboard. Its security checks flag tables without RLS (Supabase: Database Advisors).
RLS being "on" isn't the whole story. A policy that says using (true) lets everyone in.
Full guide: How to check if Supabase RLS is enabled (and actually working).
3. Test if one user can see another user's data (10 min)
This is the test that matters most.
- Log in as User A. Create something private: a note, a booking, a profile.
- Copy the ID or link of that item.
- Log out. Log in as User B.
- Try to open User A's item by pasting the link, or by changing the ID in the URL.
- Open the item link in a private window while logged out.
If User B or a logged-out visitor can see it, your access rules have a hole. This is often called IDOR or broken object level authorization.
Full guide: Can one user see another user's data? How to test.
4. Check your file uploads (3 min)
If users upload photos, PDFs or documents, open Storage in Supabase. Each bucket says if it is Public or not.
A public bucket means anyone with the file URL can open the file. For private files, use a private bucket with storage policies, and show files with signed URLs (Supabase: Storage access control).
Full guide: Is my Supabase storage bucket public?
5. Try to open your admin page as a normal user (3 min)
Log in as User B (not an admin). Type your admin URL by hand, like /admin or /dashboard/admin.
If the page loads, or loads empty but the data still comes back in the Network tab, the admin check is only in the UI. The check has to happen in the database (RLS) or on the server too.
Full guide: How to protect admin routes and roles.
6. Make sure payments are confirmed on the server (3 min)
If your app unlocks paid features, ask yourself: what tells my app that someone paid?
- Risky: the browser says "payment worked" and the app flips the user to Pro.
- Safer: Stripe sends a webhook to your server, your server checks the webhook signature, and only then marks the user as paid.
Stripe's docs say to verify the signature of every webhook event before you trust it (Stripe: Webhooks). Also make sure users can't change their own plan or is_pro column. An RLS update policy on the profile table should block that column.
7. Put a limit on AI features (3 min)
If a button in your app calls OpenAI, Anthropic or another AI API, each click costs you money.
- The AI key should live on the server, not in the browser.
- Only signed-in users should reach the AI route.
- Each user should have a limit, like a set number of calls per hour.
- Set a monthly spend limit with your AI provider as a last safety net.
Full guide: How to stop surprise AI bills.
8. Check headers and HTTPS (2 min)
Run your URL through Mozilla's HTTP Observatory. It shows which security headers your site sends. Also click the lock icon in your browser to see that the certificate is valid.
Full guides: Which security headers should my app send? and How to add security headers.
9. Make sure nobody can download your secrets file (1 min)
In a private window, try opening https://your-app.com/.env and https://your-app.com/.git/config. You should get a 404 or your normal "not found" page, never a file full of settings.
Full guide: Can people download my .env file?
If you use Lovable
Lovable has a built-in Security view that scans your project. It's a good first step. Lovable's own docs say these scans don't guarantee your app is fully secure, so still do the hands-on tests above, especially Step 3 (Lovable docs: Security).
Fix it with your coding agent
Paste this into Lovable, Bolt, v0, Cursor or Claude Code. Edit the parts in brackets.
Do a security review of this app before launch. Do not add new features.
1. List every place a secret key is used (Supabase service_role, Stripe secret,
AI provider keys). Make sure none of them are in frontend code or in any
VITE_ or NEXT_PUBLIC_ variable. Move those calls to a server route or
Supabase Edge Function.
2. List every table in the public schema. Turn on RLS for each one. Write
policies so users can only read and change their own rows (match
auth.uid() to the owner column). Remove any policy that uses (true) on
tables with personal data.
3. Make sure users cannot update their own role, plan or is_admin columns.
4. Check that storage buckets for private files are private, with policies
so users can only read their own files. Use signed URLs to show them.
5. Check admin pages and admin data on the server or in RLS, not only in the UI.
6. Only mark a user as paid from a Stripe webhook whose signature is verified.
7. Require sign-in and add a per-user limit on any route that calls an AI API.
8. When done, list the files you changed and give me step-by-step tests I can
run with two test accounts and a logged-out browser.Then run Steps 1 to 9 again yourself. Don't take the agent's word for it. Test it.
FAQ
Is Lovable secure? Lovable gives you a solid base, like Supabase auth and a security scan. But the safety of your app depends on your tables, policies, keys and pages. Those are the parts to check before launch.
Is it bad that my Supabase key shows up in the browser? Not if it's the anon or publishable key and RLS is on. It's built to be public. See Is the Supabase anon key a secret?
How often should I check? Every time your coding agent adds a new table, a new page or a new integration. AI agents can undo a fix while adding a feature.
Does a free scan replace these tests? No. A scan from the outside can find leaked keys, some open tables, missing headers and certificate problems. It can't log in as two users and compare their data. Do Step 3 yourself.
Sources
- Supabase: API keys
- Supabase: Row Level Security
- Supabase: Database Advisors
- Supabase: Storage access control
- Stripe: Webhooks (verify signatures)
- Lovable docs: Security
- Mozilla HTTP Observatory
Want a quick outside check before launch? Run a free VibeVigil scan for exposed keys, open Supabase tables, headers and SSL. Only scan apps you own.
Scan your app free. It checks the public page of a site you own. No account.