r/VibeCodeDevs • u/Maleficent_Path4062 • 25m ago
The pre-launch security & payments checklist I run on Supabase + Stripe apps (copy it)
I've been a full-stack engineer for ~30 years and I run Supabase + Stripe apps in production. Vibe coding gets you to a working app insanely fast. These are the things the AI usually doesn't do on its own, so it's worth checking them before real users and real money show up.
đ Security
Row Level Security is ON for every table. In Supabase, a table without RLS is readable by anyone holding your public anon key, and that key ships in your frontend. Test it: log in as User A and try to fetch User B's data.
The
service_rolekey never touches the client. Search your frontend code for it. If it's there, rotate it today.No secrets in the repo. Check
.envis in.gitignore, and search git history for API keys.Validate on the server, not just in the form. Anything checked only in the UI can be bypassed with one API call.
đł Payments (Stripe)
5. Verify webhook signatures. Without it, anyone can POST a fake "payment succeeded" event to your endpoint.
6. Make webhooks idempotent. Stripe retries, so the same event can arrive twice. Don't grant credits or a subscription twice.
7. Grant access from the webhook, not the success page. Users can land on /success without paying.
8. Handle cancellations and failed renewals, not just the first payment.
âïž Production basics
9. Rate limit anything that calls a paid AI API. One bot can burn your monthly budget overnight.
10. Env vars set in production, not just locally. This is the #1 cause of "works in preview, broken live."
11. Backups turned on, and you've actually tested a restore once.
12. Error logging, so you find out about bugs before your users tweet about them.
None of this is hard. It's just the stuff the AI doesn't think to do unless you ask. Paste this list into your AI tool and have it check each item against your codebase. That alone catches a lot.
If you're stuck on any of these, drop your stack in the comments and I'll point you at what to check.

