Is my vibe-coded app leaking? A self-check for non-coders
Updated First published
This page is for you if you built an app with AI, in Lovable, Bolt or another tool, it uses a database like Supabase, and you don’t read code. It’s a self-check for leaks: data or keys that someone outside can reach right now. It works for any tool. If your app is on Lovable and you’re getting ready to launch, the Lovable security checklist for non-coders is the step-by-step for Lovable’s own scans; this page points to it where it fits.
The facts here come from Supabase’s docs on row level security, API keys, storage buckets, storage access control and serving files, Lovable’s docs on security best practices and Secrets, and GitHub’s docs on secret scanning, all checked November 10, 2026. The browser tests in step 4 are our own recommendation, not a feature or a step from those docs, and we say so there. Menus change, so check those pages if something looks different. None of the links on this page are affiliate links.
1. Check that every table has RLS on
If your app saves anything about people, like names, emails, orders or messages, it’s in a database table. Row Level Security (RLS) is the set of rules that decides which rows each person can see or change, for example “each user only reads their own orders”.
Supabase’s docs put it plainly: “A table in an exposed schema without RLS is readable and writable by any role with a grant on it. Enable RLS on every table in an exposed schema.” In everyday words: a table without RLS can be read and changed by anyone the database lets in, including visitors who never signed in.
Turning RLS on is step one. The rules still need checking:
- A rule that lets everyone read. A rule for anonymous visitors that allows every row (in code it looks like
to anon using (true)) gives any signed-out visitor all the rows that role can already reach. Supabase says to use it only for data that’s meant to be public, like a list of products. - Rules don’t remove access by themselves. Supabase says grants (who may touch a table at all) and policies (which rows they reach) are separate checks. Adding a policy doesn’t take away a grant. In projects that still give access automatically to anonymous and signed-in users, access that shouldn’t exist has to be removed.
Where to look. On Lovable, its docs say you can inspect every rule under More → Database → Manage → Policies. Lovable sets up basic rules for you, but says you should review them. On your own Supabase project, Could my app be exposing personal data? explains the “Table publicly accessible” error in Supabase’s Security Advisor.
If you don’t read code, ask your AI tool to look, without changing anything:
Don't change anything. Only look and report back in plain English.
1. List every table in my database and say whether Row Level Security (RLS) is turned on for each one.
2. For each table, explain who can read, add, change and delete rows: anyone, signed-in users, or only the owner of the row.
3. Point out any rule that lets anonymous visitors read or change private data.
Then wait for me before fixing anything.
Never turn RLS off to make an error go away. Ask the AI to fix the rule instead. Database errors in a vibe-coded app explains what to paste into the chat.
2. Look for exposed API keys
Your app’s frontend, the part that runs in the visitor’s browser, can be read by anyone. Lovable’s docs say the frontend can be inspected, and that “Secrets stored in frontend code are visible to users and should be considered compromised.”
Which keys are fine in the browser, and which aren’t:
- Supabase’s publishable key (older projects call it the anon key) is made for the browser. Supabase says it’s “Safe to expose online” because “it only reaches what Row Level Security allows”. That’s why step 1 matters so much: this key is only as safe as your RLS.
- Supabase’s secret key (older name: service_role) is not. Supabase says it bypasses RLS and: “Never use a secret key in the browser or expose it to customers.” It also shouldn’t be in your code repository.
- VITE_ means public. Lovable’s Secrets docs say anything that starts with
VITE_is a browser value, built into the code sent to visitors. They treat values likeVITE_SUPABASE_URLandVITE_SUPABASE_PUBLISHABLE_KEYas safe to be public, and Lovable won’t even accept aVITE_name in its Secrets manager. A secret key in aVITE_variable is a leaked key. - Other services’ keys (AI providers, payments, email) belong on the server. On Lovable, that’s Secrets (More → Settings → Secrets): Lovable says secrets are injected into your Edge Functions, never reach the browser and are write-only.
The repository counts too. If your project is connected to GitHub, a key that was ever committed stays in the git history. GitHub’s secret scanning looks for keys in the git history, issues, pull requests, discussions, wikis and gists. On public repositories, GitHub says it “runs automatically for free”. For private repositories owned by an organization, GitHub says it needs GitHub Secret Protection, on GitHub Team or Enterprise, so don’t assume a private repository is scanned.
To check a project with your AI tool, use the read-only prompt in How to keep API keys safe. It never prints a full key.
3. Check your storage buckets
If your app lets people upload files, like photos, documents or invoices, they’re usually in a storage bucket. On Supabase, buckets are private by default.
A bucket set to Public is different. Supabase says: “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.” Uploading, deleting, moving and copying files still need permission, but viewing doesn’t.
Supabase documents the address of a file in a public bucket like this:
https://[project_id].supabase.co/storage/v1/object/public/[bucket]/[asset-name]
So if a file’s address follows this pattern, with /object/public/ in it, the file is served from a public bucket.
Public isn’t always wrong. Profile pictures or product photos can be public on purpose. Personal documents can’t: ID cards, contracts, medical files, invoices, anything you wouldn’t post online.
Supabase’s access control docs also say the service key bypasses the storage rules too: “Remember you should not share the service key publicly.”
To check, ask your AI tool:
Don't change anything. Only look and report back in plain English.
1. List every storage bucket my app uses and say whether each one is public or private.
2. For each bucket, tell me what kind of files the app puts there.
3. Point out any public bucket that holds personal files, like documents, contracts or invoices.
Then wait for me before fixing anything.
4. Test the app in your browser (our recommendation)
The tests below are our recommendation, not a feature of Supabase, Lovable or GitHub, and not a step from their docs. They need no code and show you, with your own eyes, the most common leak: one person seeing data that isn’t theirs. Do them on the published link, and use made-up data only, never real people’s data.
Test 1: a private window. Open the published app in a private (incognito) window, where you aren’t signed in. Go through every page a visitor can reach. Look for other people’s data, lists of users, uploaded files or admin panels. Anything that should need a login shouldn’t show data. If you can copy the address of a page you see while signed in, paste it into the private window too.
Test 2: two accounts. Create two test accounts with made-up details, A and B. As A, add something private, like an order or a note. Then, in another browser or private window, sign in as B. B shouldn’t see or change anything that belongs to A: not in lists, not in search and not by opening the address of A’s page.
Test 3: a file (if your app has uploads). As A, upload a test file that shouldn’t be public. If you have the file’s address, for example in the public format from step 3, open it in a private window with no login. If it opens, the file is public.
If any test shows something it shouldn’t, go to step 5. How to test your app without coding has more tests for the rest of your app.
5. If it’s leaking, act in this order
- Rotate any exposed key first. If a secret key was in the browser, in a
VITE_variable or in your repository, revoke or rotate it at the provider before anything else. GitHub’s docs say: “When you receive an alert, rotate the affected credential immediately to prevent unauthorized access.” Removing the key from your code later doesn’t stop the old one from working. On Lovable, theLOVABLE_API_KEYsecret has a Rotate action for when you suspect it was exposed. For other keys, create a new one at the provider and store it in Secrets, not in the code. How to keep API keys safe has the steps for OpenAI, Anthropic and Supabase. - Keep the secret key out of the browser for good. Supabase’s secret key (or service_role key) doesn’t belong in the browser, the published app or the repository. Ask your AI tool to move any call that needs it to server code, like an Edge Function.
- Turn on RLS on every exposed table and review the rules. Both Supabase and Lovable say this. Ask your AI tool to fix each rule, one at a time, then repeat the tests in step 4.
- Make private buckets private again. A bucket with personal files that is set to Public needs to stop being public, so its files go back to needing permission to open. Ask your AI tool to make that change and to check that the app still shows files to the right people.
- Stop sharing the link while you fix it, and don’t use real data until the tests pass.
- If real people’s data was exposed, get professional help. We don’t give legal deadlines on this page: what applies depends on where you and your users are. Could my app be exposing personal data? has more on this.
- On Lovable, run the advanced checks too. Click Run checks in More → Security. They read your app’s code for problems like users who can see other people’s data. The Lovable security checklist for non-coders walks through it.
If you built it on Lovable
Before you publish, Lovable’s security best practices ask for: no secrets in the frontend, validation and critical logic on the server, RLS configured and tested, authentication handled on the server, and the critical findings in the Security view resolved. This page covers the leak checks. The Lovable security checklist for non-coders covers Lovable’s own scans, the Security view and who can open your project.
Your checklist
- RLS is on for every table, and no rule lets anonymous visitors read private data.
- No secret key or service_role key in the browser, in a
VITE_variable or in the repository. - No bucket with personal files is set to Public.
- Private window, two-account and file tests passed on the published link, with made-up data.
- Any key that was exposed has been rotated at the provider.
- If real people’s data was exposed, you’ve talked to a professional.
Questions people ask
How do I know if my vibe-coded app is leaking data?
Check the three places where AI-built apps usually leak: database tables without Row Level Security (RLS), secret keys in the code that runs in the browser or in your repository, and storage buckets set to Public. Then test the published app in a private window with no login and with two test accounts. If you see data that isn't yours, or that should need a login, treat it as a leak. The browser tests are our recommendation, not a feature of Supabase or Lovable.
Is it a problem that my Supabase key is visible in the browser?
It depends on which key. Supabase says the publishable key is safe to expose online, because anyone can read it and it only reaches what Row Level Security allows. That's why RLS matters. The secret key, or the older service_role key, bypasses RLS: Supabase says never to put one in a browser, a shipped app or source control. If a secret key was visible, rotate it.
I turned on RLS. Am I done?
Not quite. With RLS on, the rules (policies) decide who reaches which rows, so check them too. A rule that lets anonymous visitors read everything gives every signed-out visitor access to all the rows that role can already reach, so use it only for data that's meant to be public. Supabase also says grants and policies are separate checks: adding a policy doesn't remove access the table already grants. Ask your AI tool to review the rules and explain them before changing anything.
Are files in Supabase Storage public?
Not by default. Supabase says buckets are private by default. If a bucket is set to Public, Supabase says anyone with a file's address can open the file. Uploading, deleting, moving and copying still need permission. A Public bucket is fine for things like profile pictures you want everyone to see, not for personal documents.
Does GitHub check my repository for leaked keys?
On public repositories, yes: GitHub says secret scanning runs automatically for free, and it looks in the git history, issues, pull requests, discussions, wikis and gists. For private repositories owned by an organization, GitHub says it needs GitHub Secret Protection, on GitHub Team or Enterprise. So don't assume a private repository is scanned. If GitHub sends you an alert, rotate the key right away.
I deleted the leaked key from my code. Is that enough?
No. Revoke or rotate the key at the provider first. GitHub's docs say to rotate the credential immediately when you get an alert, and that removing a secret from your git history is time-intensive and often unnecessary once the credential is revoked. Deleting the key from your code without rotating it leaves the old key working.
What should I do if real people's data was exposed?
Stop sharing the link, close the leak (rotate keys, turn on RLS, make private buckets private) and get professional help. What you need to do depends on your case and the privacy laws that apply to it, so we don't give legal deadlines here. A professional can tell you what applies to your case.
New guides by email. An email when we publish a new guide, error fix or chapter, in plain English. Subscribe