Guide · Updated October 19, 2026
Before you ship a vibe-coded app
The short version
Open the app in a private window, signed out. If you can see someone else’s data in the page or in a network response, stop. If the JavaScript contains a secret key, stop. Then confirm the database rules, not the login screen, are what keep rows private.
Launch-ready audit
Built with Lovable, Bolt, v0, Replit, Base44, or Supabase? We check the app and send a written report plus a pull request within 72 hours of repo access, or your money back.
Get your app launch-ready1. Read the page while you are signed out
- Open a private window and do not sign in.
- Load the home page, the login page, and any other page a stranger can open.
- View the page source (right-click, or Ctrl+U, or Command+Option+U on a Mac).
- Search that source for an email address, a phone number, or a name that is not yours.
The source is the page the server sent. If a customer list is in it, the server already gave that list to anyone who opened the URL. A login form on top of the page does not take the data back.
2. Watch the network tab, still signed out
- Open the browser’s developer tools and select the Network tab.
- Reload the signed-out page.
- Open the responses that come back as JSON or as a document.
- Look for lists of people, email addresses, phone numbers, or notes.
A generated app often loads its data in a second request. The screen can look empty while that response still contains the whole table. You are looking at the same response a stranger gets.
3. Search the JavaScript for a secret key
- In the Network tab, open the JavaScript files the page loaded.
- Search them for sb_secret_, service_role, and the name of any private key.
- A Supabase publishable key (sb_publishable_…) is allowed in the browser.
- A secret key (sb_secret_…) or the older service_role key is not.
- A long key that starts with eyJ is the older format. It might be the legacy publishable key, or it might be service_role. If you cannot tell which, treat it as private until the dashboard shows you.
Next.js copies every variable that starts with NEXT_PUBLIC_ into the JavaScript bundle when you build. Vite does the same for variables that start with VITE_, and tells you not to put API keys there. OWASP’s secrets guidance says keys often end up hardcoded in source, in plaintext. Saving the key in a host’s settings does not prevent that: Vercel says your code can read those values during the build, and a public prefix still ships the value to the browser.
Next.js environment variables. Also see Vite on VITE_ variables, Vercel on environment variables, and the OWASP secrets cheat sheet.
4. Keep secrets in server-only variables
- In the project, a private key has no NEXT_PUBLIC_ or VITE_ prefix.
- Only server code reads it: a route handler, a server component, or another file the browser never downloads.
- Do not commit .env files. The Next.js template ignores them for this reason.
A variable without the public prefix stays on the server. The prefix is the instruction to copy it into the client bundle. Supabase’s own example puts the publishable key in NEXT_PUBLIC_ and the secret key in a name with no prefix, and says never to prefix the secret.
Supabase API keys. Publishable keys are safe to expose. Secret keys bypass row-level security.
5. Ask the API for data without logging in
- From the Network tab, copy a request that loads private data.
- Send it again from the private window, with no session cookie and no Authorization header. curl is enough.
- You want a refusal: 401, 403, or an empty list.
- A 200 that includes someone else’s rows is a fail. Stop and fix that before you share the link.
The login page is not the lock. The API is. Supabase treats a signed-out call as the anon role. A policy written as “to anon using (true)” lets every signed-out visitor read every row that role can reach. Use that only for data you mean to publish.
Supabase row-level security. The anon role is the signed-out visitor.
6. Check the database rules, not just the login screen
- On Supabase, turn on row-level security for every table the API can reach. Until you add a policy, a publishable key should get nothing back.
- Read the policies. “Anyone who is signed in” is not “only their own rows.”
- Check views too. A view skips row-level security unless you set it up not to, so it can leak the rows the table policies hide.
- On Firebase, open the Firestore rules. allow read, write: if true lets anyone read and overwrite the database. Firebase says never to use that set in production.
- allow read, write: if request.auth != null lets any signed-in account read and write every document. Firebase shows it as a basic example and says it is not what to ship.
- If a server uses the Firestore server libraries, those calls skip the rules. The server has to check who is asking.
Supabase warns that a table without row-level security is readable and writable by any role that has a grant on it. A secret key skips every policy, so it stays on the server. Firebase keeps rules outside the app on purpose: the client is not what enforces them, and a bug in the page must not be what exposes the data.
Firebase Security Rules. The Firestore examples of allow-all and signed-in-only rules are on the Firestore rules getting-started page.
7. See whether a public action can be repeated without a limit
- On the signed-out site, use a form that sends email, texts a code, or creates an account.
- Submit it several times in a row.
- If every submit goes through, you have not seen a limit. Add one on signup, login, and password reset before you announce the app.
OWASP’s API Security Top 10 calls a missing limit Unrestricted Resource Consumption. An API is exposed when it does not cap how often a client can call it. One of their cases is a password reset that sends a text on every request, so repeated calls run up the provider’s bill. The same pattern fits a signup form that sends mail.
OWASP API4:2023 Unrestricted Resource Consumption. The prevention list includes a limit on how often a client can call the API.
What this check is not
It is not a security audit, and it is not a score. It catches what a stranger can see with no account. ShipRanked does not rank tools on this page.
Questions
- Is a key in the browser always a leak?
- No. Supabase says a publishable key is safe to expose, because it only reaches what row-level security allows. A secret key, or the older service_role key, is a leak: it bypasses those rules. If you cannot tell which key you found, check the project’s API keys page before you ship.
- I did not write the code. Can I still do this?
- Yes for the signed-out checks. View source, the network tab, and the JavaScript files do not need the repo. The database rules need the Supabase or Firebase project. If you cannot open that project, do not treat the app as checked.
- Does a passing check mean the app is safe?
- No. This is a 10-minute look for data a stranger can see without an account. It will not find every bug. After it passes, change an id in the URL while signed in as one user and confirm you cannot open another user’s row.
