logoalt Hacker News

victorbuildstoday at 8:42 AM5 repliesview on HN

Different service, same cold sweat moment. Asked Claude Code to run a database migration last week. It deleted my production database instead, then immediately said "sorry" and started panicking trying to restore it.

Had to intervene manually. Thankfully Azure keeps deleted SQL databases recoverable for a window so I got it back in under an hour. Still way too long. Got lucky it was low traffic and most anonymous user flows hit AI APIs directly rather than the DB.

Anyway, AI coding assistants no longer get prod credentials on my projects.


Replies

ogriseltoday at 8:46 AM

How do you deny access to prod credentials from an assistant running on your dev machine assuming you need to store them on that same machine to do manual prod investigation/maintenance work from that machine?

show 2 replies
chr15mtoday at 2:29 PM

> deleted my production database

I'm astonished how often I have read about agents doing this. Once should probably be enough.

show 1 reply
pu_petoday at 8:46 AM

Why are you using Claude Code directly in prod?

show 1 reply
ObiKenobitoday at 8:44 AM

Shouldn't had in the first place.

nutjob2today at 1:37 PM

> Anyway, AI coding assistants no longer get prod credentials on my projects.

I have no words.