News for hackers. Stuff that matters.
Re:Stolen Gemini API key racks up $82,000 in 48 hours by kevin42 on Tuesday March 03, 2026 @08:18AM (#47231890)
There is a way to trigger a script when a budget is hit, but they don't make it easy. You set up a billing notification that triggers a script, which can disable resources (like APIs) automatically.

https://docs.cloud.google.com/billing/docs/how-to/control-us...

Google Cloud is easy to set up soft budget alerts via email though, something that I had to use third party service for with AWS.

Re:Stolen Gemini API key racks up $82,000 in 48 hours by jsheard on Tuesday March 03, 2026 @08:33AM (#47232082)
Those budget alerts usually aren't instant though, they only fire when the cloud gets around to reconciling your usage some number of hours or even days after the damage is done. It's better than nothing but with runaway spending you can still blow way past your limit.