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.