Skip to content
PromptToProd

Security checklist before you launch a vibe-coded app

Checked against official pricing pages and docs on Oct 26, 2026. Plans change, so confirm on each official site.

AI builders and coding agents get you to a working app fast, but they don’t always lock it down. Most launch-day incidents in vibe-coded apps come from the same few gaps: a database anyone can read, a secret key shipped to the browser, or a webhook that trusts any request. Run through this list before you share the link.

1. Turn on database access rules

If your app talks to Supabase from the browser, the key in your frontend is public by design. Supabase’s docs put it plainly: the publishable key “only reaches what Row Level Security allows”, while the secret key “bypasses Row Level Security, so it must never leave your control.” Enable Row Level Security on every table that holds user data and write a policy per action (select, insert, update, delete). Test it by signing in as a second user and trying to read the first user’s rows.

2. Keep secret keys on the server

Anything bundled into the frontend is readable by anyone. Supabase secret keys, Stripe secret keys, OpenAI or Anthropic API keys and email API keys belong only in server code, edge functions or your host’s environment variables. Note that Supabase is deprecating the legacy anon and service_role keys by the end of 2026 in favor of publishable (sb_publishable_…) and secret (sb_secret_…) keys. See our env vars and secrets guide.

3. Run the scanner you already have

Lovable has built-in security scans (a quick scan and a deep scan) that run before publishing and on demand, and it detects API keys pasted into chat and moves them to Secrets. On GitHub, push protection blocks commits that contain known secret formats. An AI code reviewer such as CodeRabbit on your pull requests catches more before merge.

4. Verify every webhook

Payment and auth webhooks are public URLs. Stripe signs each event in the Stripe-Signature header; verify it with your endpoint’s signing secret before you grant access or mark an order paid. Never trust a client-side “payment succeeded” redirect on its own.

5. Check auth settings

Require email verification before granting access, set your production redirect URLs (and remove localhost) in your auth provider, and turn on rate limits or bot protection for sign-up. Hosted auth like Clerk or Supabase Auth handles password storage for you; if you self-host with Better Auth, keep it updated.

6. Protect endpoints that cost money

Any route that calls an LLM, sends email or uploads files can be abused to run up your bill. Require sign-in, add per-user rate limits and set spend limits or alerts with each provider.

7. Validate input on the server

Validate and size-limit every form field and upload on the server, even if the UI already checks it. Use your database client’s parameterized queries instead of building SQL strings. The OWASP Top 10 is the standard checklist for the rest.

8. Add error monitoring before launch

You can’t fix what you can’t see. Sentry’s Developer plan is free for one user and covers error monitoring and tracing; wire it up before real users arrive.

9. Back up your data

Know how to restore your database. Check what your plan includes for backups and point-in-time recovery, and export a copy before big schema changes an agent proposes.

10. Do a two-account test

Create two test accounts and try to see, edit or delete each other’s data through the UI and by calling your API directly. This catches most access-control bugs in minutes.

Tools in this guide

ToolScoreFree tierPricing
Supabase93Yes: 2 projects, 500 MB DB, 50K MAU, 1 GB storage (pauses after 1 week idle)Pro from $25/mo per org (includes $10 compute credit)
Supabase Auth85Yes: 50,000 monthly active users on the Supabase Free plan (free projects pause after 1 week of inactivity, 2 active projects max)Included in Supabase plans: Free $0 (50,000 MAU); Pro from $25/mo (100,000 MAU, then $0.00325 per MAU); Team from $599/mo; Enterprise custom. Advanced phone MFA, SAML SSO and leaked-password protection are paid features
Clerk87Yes: 50,000 monthly retained users per appPro $25/mo ($20 annual), then $0.02/MRU over 50K
Better Auth86Yes: MIT library free to self-host; Infrastructure Starter $0Library free; optional Infrastructure Pro $20/mo
Stripe85No monthly fee (pay per transaction)2.9% + 30¢ per successful US card charge; no monthly fee
Sentry84Yes: Developer plan free forever for 1 user — error monitoring and tracing, email alerts, 10 custom dashboards, MCP accessDeveloper free (1 user); Team from $26/mo annual with default prepaid data; Business from $80/mo annual; Enterprise custom. Included quotas vary by plan (e.g. 50K errors, 5M spans on calculator defaults)
CodeRabbit82Yes: free for public/open-source reposEssentials $24/user/mo annual ($30 monthly); Team $48/user/mo annual ($60 monthly); Advanced $72/user/mo; Enterprise custom. Extra usage-based reviews $0.25 per reviewed file

Scores come from our methodology. Money never affects them.

FAQ

Is the Supabase key in my frontend a security problem?
Not by itself. The publishable (or legacy anon) key is meant to be public and only reaches what Row Level Security allows. The problem is tables without RLS policies, or a secret key in frontend code.
Does Lovable check my app’s security?
Yes. Lovable runs built-in security scans (quick and deep) before publishing and on demand, and moves API keys pasted into chat into Secrets.
How do I keep Stripe webhooks secure?
Verify the Stripe-Signature header on every event with your endpoint’s signing secret, and only grant access after a verified webhook, not after a client-side redirect.
What is the fastest security test before launch?
Sign up two test users and try to read or change one user’s data while signed in as the other, through the UI and through direct API calls.

Sources

Related

PromptToProd Weekly

New tools, ranking changes and pricing updates. One email a week, unsubscribe anytime.

Prefer X? Follow @PromptToProdApp