r/VibeCodeDevs • • 2d 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

  1. 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.
  2. The service_role key never touches the client. Search your frontend code for it. If it's there, rotate it today.
  3. No secrets in the repo. Check .env is in .gitignore, and search git history for API keys.
  4. 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.

1 Upvotes

1 comment sorted by

•

u/endofthread-bot 2d ago

Hey u/Maleficent_Path4062, thanks for posting in r/VibeCodeDevs! Join our Discord: https://discord.gg/t7SD4ThKuE

• This community is designed to be open and creator‑friendly, with minimal restrictions on promotion and self‑promotion as long as you add value and don’t spam.
• Please follow the subreddit rules so we can keep things as relaxed and free as possible for everyone. • Please make sure you’ve read the subreddit rules in the sidebar before posting or commenting.
• For better feedback, include your tech stack, experience level, and what kind of help or feedback you’re looking for.
• Be respectful, constructive, and helpful to other members.

If your post was removed (either automatically or by a mod) and you believe it was a mistake, please contact the mod team. We will review it and, when appropriate, approve it within 24 hours.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.