r/VibeCodeDevs • • 7h ago

Solo/small SaaS founders: what does your security setup actually look like?

Not the "best practices" answer, the real one.

For me it was: API keys in .env files and Vercel, a shared password manager, 2FA on most things, and absolutely no plan for what I'd do if a key leaked.

Curious where everyone else is at:

  • Where do your API keys live?
  • Do you ever rotate them, or only when something breaks?
  • Has anything actually gone wrong yet?

No judgement, I suspect most of us are in the same boat.

0 Upvotes

6 comments sorted by

•

u/endofthread-bot 7h ago

Hey u/keysquidsecurity, 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.

3

u/Cast_Iron_Skillet 6h ago

1pass with 2fa for shared access to secrets and credentials (strictly controlled access to specific folders based on role). We store latest API keys there too. Also AWS secrets manager GitHub secret variables and vercel env vars for deployments (anything prod is secret type, only rotate or 1pass). 

Two envs: QA with lost of test and synthetic data, prod with real shit. Of course local dev too, but we just copy everything from QA for that usually. 

RLS on supabase DB and tight controls over API surfaces with role and access checks on every endpoint that touches our Aurora SQL and supabase DBs.  

RBAC, ABAC, and PBAC where appropriate. RBAC is almost everywhere. 

Audit the fuck out of everything (HIPAA req, but also helpful). 

Hourly DB backups, with 7 day hot storage, 180 day cold storage, and 6 yr archival storage. All encrypted. 

Every data process is encrypted at rest and in transit. Tls 1.3. 256 AES for most stuff, but may revisit this next year given current security climate. 

2

u/OmegaNetRob 6h ago

This is a good list, and while its inferred I would add a printed break glass key for your encrypted backups in case you lose everything, and that your cold storage backups are immutable meaning that nobody (even yourself) can delete your backups within a specified time range.

1

u/keysquidsecurity 3h ago

Indeed a very good list, thank you both! Building in cybersecurity is fun :)!

2

u/samurai_with_sword 5h ago

Yes. All of that plus double or tripple checking scope of functions and read/write permissions. For example only authenticated users can write, but can one authenticated user write to another users profile?

1

u/keysquidsecurity 3h ago

Very good insight, thank you!