News for hackers. Stuff that matters.
Re:Google Antigravity just deleted the contents of whole drive by victorbuilds on Monday December 01, 2025 @03:42AM (#46104985)
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.

Re:Google Antigravity just deleted the contents of whole drive by ogrisel on Monday December 01, 2025 @03:46AM (#46105027)
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?
Re:Google Antigravity just deleted the contents of whole drive by victorbuilds on Monday December 01, 2025 @04:00AM (#46105118)
I keep them in env variables rather than files. Not 100% secure - technically Claude Code could still run printenv - but it's never tried. The main thing is it won't stumble into them while reading config files or grepping around.
Re:Google Antigravity just deleted the contents of whole drive by 63stack on Monday December 01, 2025 @06:29AM (#46106150)
A process does not need to run printenv to see environment variables, they are literally part of the environment it runs in.
Re:Google Antigravity just deleted the contents of whole drive by dist-epoch on Monday December 01, 2025 @06:49AM (#46106265)
The LLM doesn't have direct access to the process env unless the harness forwards it (and it doesn't)
Re:Google Antigravity just deleted the contents of whole drive by fragmede on Monday December 01, 2025 @05:51AM (#46105895)
chown other_user; chmod 000; sudo -k
Re:Google Antigravity just deleted the contents of whole drive by pu_pe on Monday December 01, 2025 @03:46AM (#46105030)
Why are you using Claude Code directly in prod?
Re:Google Antigravity just deleted the contents of whole drive by victorbuilds on Monday December 01, 2025 @04:03AM (#46105139)
It handles DevOps tasks way faster than I would - setting up infra, writing migrations, config changes, etc. Project is still early stage so speed and quick iterations matter more than perfect process right now. Once there's real traffic and a team I'll tighten things up.
Re:Google Antigravity just deleted the contents of whole drive by MandieD on Monday December 01, 2025 @07:19AM (#46106524)
"Once there's real traffic and a team I'll tighten things up."

As someone who has been in this industry for a quarter century: no, you won't.

At least, not before something even worse happens that finally forces you to.

Re:Google Antigravity just deleted the contents of whole drive by ljm on Monday December 01, 2025 @10:18AM (#46108436)
If I felt the need to optimise things like infra setup and config at an early stage of a project, I'd be worried that I'm investing effort into the wrong thing.

Having an LLM churn out infra setup for you seems decidedly worse than the `git push heroku:master` of old, where it was all handled for you. And, frankly, cheaper than however much money the LLM subscription costs in addition to the cloud.

Re:Google Antigravity just deleted the contents of whole drive by ryanjshaw on Monday December 01, 2025 @08:45AM (#46107314)
But why have it execute the tasks directly? I use it to setup tasks in a just file, which I review and then execute myself.

Also, consider a prod vs dev shell function that loads your prod vs dev ENV variables and in prod sets your terminal colors to something like white on red.

Re:Google Antigravity just deleted the contents of whole drive by wavemode on Monday December 01, 2025 @10:20AM (#46108462)
> Once there's real traffic and a team I'll tighten things up.

Nope. Once there's real traffic, you'll be even more time-constrained trying to please the customers.

It's like a couple who thinks that their failing relationship will improve once they have a child.

Re:Google Antigravity just deleted the contents of whole drive by 946789987649 on Monday December 01, 2025 @10:21AM (#46108466)
If you have no real traffic, what complex things are you doing that even require such tools?
Re:Google Antigravity just deleted the contents of whole drive by lp0_on_fire on Monday December 01, 2025 @10:07PM (#46116964)
There is nothing more permanent in computerlandia than a temporary solution.
Re:Google Antigravity just deleted the contents of whole drive by ObiKenobi on Monday December 01, 2025 @03:44AM (#46105005)
Shouldn't had in the first place.
Re:Google Antigravity just deleted the contents of whole drive by nutjob2 on Monday December 01, 2025 @08:37AM (#46107233)
> Anyway, AI coding assistants no longer get prod credentials on my projects.

I have no words.

Re:Google Antigravity just deleted the contents of whole drive by chr15m on Monday December 01, 2025 @09:29AM (#46107830)
> deleted my production database

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

Re:Google Antigravity just deleted the contents of whole drive by 946789987649 on Monday December 01, 2025 @10:20AM (#46108461)
I'm astonished how many people have a) constant production access on their machine and b) allow a non-deterministic process access to it