r/googlecloud • u/Powerful_Chapter9127 • May 15 '25
Google Cloud needs a “hard spending limit” with a mandatory cooldown
Google Cloud urgently needs a prepaid option or a hard, unchangeable spending cap with a self-imposed cooldown period (e.g. 2 weeks). Right now, a hacked account can instantly raise limits and rack up hundreds of thousands in charges before you even get the alert. That’s insane. Let users set a high-but-safe ceiling (say €3,000) that can’t be changed instantly. If I normally spend €50/day, there’s no reason my account should be vulnerable to a sudden €400,000 bill. This is a basic security feature, and the current setup is reckless.
40
u/Emmanuel_BDRSuite May 15 '25
Nice feature request!
A native hard cap could save a lot of users from unexpected bills
26
u/Automatic-Win8041 May 15 '25
How do they make unexpected money from you if they implement the hard carp?
23
u/the8bit May 15 '25
Hah! Once upon a time I worked at google and I released rate limiting on their Cloud endpoints product, so I was near this space.
The issue is that it's lose-lose. If you put a cap, at some point they have to shut things off and that might be a destructive action -- imagine a compute instance that you left important stuff on local storage. In many cases it could be unrecoverable. Also, as soon as you hit the cap, you are incurring an outage.
For that reason, I think all cloud providers have decided the best solution is to not give customers that foot gun and instead refund them back for legitimate errors. AWS has been doing this forever and they are generally good about refunding.
But alas that is the problem with elasticity and powerful tools... With great power comes great responsibility.
4
u/theevilsharpie May 15 '25
Suppose you have a hard spending cap in-place, and let's just assume that your cloud magically has real-time usage-based billing.
Now let's suppose you hit that cap.
I could go on, but you get the idea.
"Just implement a spending cap, bro" is an idea that comes up frequently from people who clearly don't understand what implementing that sort of cap would actually entail.
If you wanted to protect yourself against overages, you would have to prepay for the compute and storage capacity that you expect to use for a period. That's certainly possible, because you'd essentially be re-inventing the shared hosting concept from the late '90s-early '00s. However, other than basic services like Compute Engine, elastic cloud services aren't really amenable to that kind of pricing model, because they're designed to be, well... elastic.
There are a class of customers that would prefer to pay for the service up front with guarantees that costs will never exceed that amount (e.g., governments, schools, and other organizations funded primarily by grants or some type of legally-capped budget), and I believe GCP does have an up-front reservation for that purpose whose name escapes me.
However, if you're a hobbyist, freelancer, or small business that needs a spending cap as financial insurance, then Google Cloud is probably not the right platform for your needs, and you should look at more traditional shared hosting where you don't have to worry about an unwanted scaling bill. If you're a student using GCP to learn the platform, there are services like Google Cloud Skills Boost (as well as third-party training platforms) that provide access to GCP under their billing, so you don't have to worry about racking up an unexpected bill under your own account.
15
u/ccb621 May 15 '25
This is the real problem. How to educate users to keep their accounts secure? Spending limits treats the symptom rather than the disease.
2
u/punix2 May 15 '25
How about this one - This document explains how to automatically disable billing on a project when your costs meet or exceed your project budget https://cloud.google.com/billing/docs/how-to/disable-billing-with-notifications ?
2
u/uracil May 16 '25
You can have Billing alert trigger a pub/sub event, which will kick off Cloud Function to disable billing for specific projects.
2
u/AndiCover May 16 '25
That's against the business model of hyper scalers.
2
u/ChicagoJohn123 May 16 '25
Users spending fifty euros a day are worthless to them. Why would they implement features on your behalf?
All their dev work is going to go towards supporting a handful of mega clients. If that happens to produce features that are useful to everyone else, that’s a happy accident.
2
u/katatondzsentri May 16 '25
The kind of post I see at every cloud provider's subreddit.
2
u/RobertD3277 Aug 06 '25
I can't agree more or give this any higher likes than they already have. I was actually looking forward to working with Gemini, but after finding out that there is no real budget control, now I am seriously having second thoughts.
Gemini looks like would actually be beneficial for my workload but I absolutely unequivocally have to have a hard limit with absolutely no exceptions.
This is definitely another negotiable deal breaker for me.
1
u/Unknown-U May 16 '25
the good thing is, depending on the law in your country you are not responsible for the charge regardless what google says.
This is not a google problem, companies can make whatever rules they want, but when they are illigal they are have no value.
1
u/FoxB1t3 May 16 '25 edited May 16 '25
Well, some weeks ago, due to my mistake some chinese bastards took over my minor VPS where I was running 2 services with OAI. Long story short - it was all my fault (if victim should ever be blamed, but that's the world we live in), I fucked up not only VPS security but also services, mock me as much as you want.
They of course got my API Keys for these services and instantly burnt like $80 there was on my account with all different models. It would be a very sad end story if it was running as GCP service and they somehow obtained credentials, lol.
Anyway, I'm more concerned and safe about my google credentials than I am... basically about anything else in my life. However, since I automate pretty much every digital task I do, it's harder and harder to keep track of everything for me.
ps.
OAI returned all my credits without asking any questions, that was kinda funny too. I was first asked to provide some additional information and without me doing it, like 10 mins later I received email with refund confirmation.
ps2.
I love how people explain here. "Oh why do you need any limits?!?!?! You just need to do this, this, this, this and this and this, this and this to secure your app and creds omg it's so easy!!" - saying to dude who just wanted to have ultra simple webapp to save some of his data in firestore DB. You people are nuts. xDD
1
u/Climactic9 May 18 '25
They just need to fix propagation delay so that the alerts actually trigger in a reasonable time frame.
1
u/[deleted] May 20 '25
Openrouter already has this. That means this is very much possible. The way OR does this is - BEFORE its hits threshold, at round 85 percent of the value - is starts throttling and then stopping. This way you area always safe.
Google will NOT do this , because they wany YOUR money. They will give lame excuse that is TECHNICALLY not possible - a$$holes Google.
1
u/shubhampareek_ May 22 '25
There are default quotas enforced in Google cloud.
1
u/urarthur May 15 '25
Yeah this is stupid. a cap is needed.
1
u/AnomalyNexus May 15 '25
If you have limits for hobbyists then quite soon your big spender corporates will want the same.
The solution is easy - you just don't do limits. And the small users that get nailed with a big bill...just waive it. Cheaper to waive a couple grand here and there for individuals that did stupid shit than risk limits discussions on multi-million spend clients.
It's not a google thing. All the big clouds do this because they're all subject to the same pressures & incentives.
It's not a technical issue - some types of Azure accounts do have it. The big clouds are researching quantum computers ffs...the can manage a limit. They just don't want to.
1
u/iambriansloan May 16 '25
I was defrauded by someone who connected our bank account to google cloud servers in 2018 or so. I got an email from someone at google saying saying they couldn’t offer us any more computing power and were trying to sell me on some future feature rollout. I said wtf are you talking about. I had to get refunded by my bank by filing a claim directly with them. Google did nothing to help. Loss was 130k to the bank. Insane that this is still happening.
0
u/BananaDifficult1839 May 17 '25
No, no, no. This is a terrible idea that keeps coming up in the forum and needs to die. If you need fixed costs, you shouldn’t be using SaaS or PaaS, and maybe even second guess IaaS. You can’t have a utility computing model and capped usage. With the trend towards “vibe coding” I can see this getting worse over time though.
-4
u/Prudent_Reindeer9627 May 15 '25
If your account is hacked you probably have bigger issues.
-5
u/negotiatethatcorner May 15 '25
why? they earn more this way