News for hackers. Stuff that matters.
Re:Serverless Horrors by crooked-v on Wednesday February 28, 2024 @01:57AM (#39534879)
Also see the Netlify comment thread linked from one of the Reddit posts (https://answers.netlify.com/t/limit-bandwidth-to-avoid-high-...), where one of their representatives specifically says that if you suffer a DDOS they will do nothing to stop you from getting a bajillion-dollar bandwidth bill, even if you're on the "free" tier.
Re:Serverless Horrors by voidwtf on Wednesday February 28, 2024 @02:12AM (#39534962)
That's my favorite thing about all these services. None of them have an equivalent of a stop-loss. They'll notify you IF you setup an alert, but that's it. Often times the alerts are way after the damage is done, with some billable metrics often lagging in reporting/alerting by hours. The default should be safe with easy options to increase the limits.
Re:Serverless Horrors by hamoodhabibi on Wednesday February 28, 2024 @02:57AM (#39535248)
oooh i really like that stop loss example. having a netlify serverless website is basically selling a put option without receiving any premium.
Re:Serverless Horrors by yccs27 on Wednesday February 28, 2024 @06:51AM (#39536715)
The premium is the website itself ;D Still, potentially unlimited costs is wayy too much risk.
Re:Serverless Horrors by jonasdegendt on Wednesday February 28, 2024 @07:31AM (#39537030)
Selling a put has a fixed downside, so perhaps selling a naked call would be more appropriate? Unlimited loss potential! :^)
Re:Serverless Horrors by fragmede on Wednesday February 28, 2024 @08:02AM (#39537298)
You can totally build a GCP function that will tear down your site if a billing alert hits the pubsub bus, but you can also set billing caps for a bunch of the APIs.
Re:Serverless Horrors by reustle on Wednesday February 28, 2024 @08:16AM (#39537440)
Why not add it directly into the interface where you configure the site to begin with? It's a pretty reasonable ask.
Re:Serverless Horrors by fragmede on Wednesday February 28, 2024 @08:22AM (#39537519)
I don't really know although I can make up an answer but it contradicts

> None of them have an equivalent of a stop-loss.

Cynically, it's because they want to take your money. Practically, it's because a company that breaks your thing because you didn't pay, even if you asked it to, just isn't going to be a popular move.

Re:Serverless Horrors by swader999 on Wednesday February 28, 2024 @08:28AM (#39537588)
It takes real leadership to back a product feature like this. That's why.
Re:Serverless Horrors by moduspol on Wednesday February 28, 2024 @08:44AM (#39537792)
It's probably quite difficult to boil it down to something as simple as an "off" switch that'll limit costs for them, meaningfully work for all services, not be abused, not be confusing, and not result in the customers that actually make you money accidentally getting important things shut off unexpectedly under predictable circumstances.

It's probably easier to make it so they can set up alerts and have a human on their end evaluate what steps are worth taking to cut costs while maintaining important availability.

Re:Serverless Horrors by ghaff on Wednesday February 28, 2024 @08:53AM (#39537909)
From what I can tell Azure has more robust stop-loss options. But business considerations for the provider aside, there are absolutely tradeoffs between reliably limiting your spend and avoiding taking a business down because of a legitimate spike.
Re:Serverless Horrors by voidpointer on Wednesday February 28, 2024 @03:10PM (#39542876)
Absolutely but that tradeoff should be for the customer to make.
Re:Serverless Horrors by remram on Wednesday February 28, 2024 @07:35PM (#39545296)
What you're saying is that I can build a cost control function, not that GCP has one.
Re:Serverless Horrors by fragmede on Thursday February 29, 2024 @02:11AM (#39547062)
Yes. GP's claim is there is no stop procedure. just because it's not a simple toggle switch doesn't mean it's not there.
Re:Serverless Horrors by Netcob on Wednesday February 28, 2024 @08:18AM (#39537453)
I remember trying AWS Glacier as a broke university student, thinking it was a cheap way to back up my data. I was wrong.

A decade later I played around with AWS, set up a free 1-core VPS. It was fine for a year or so (I ended up not using it at all), and suddenly I got a bill. It wasn't much, but it reminded me how these services make it very hard to be aware of your bills until you get them.

I was trying out Azure recently, and I found it too confusing to make any sort of quick risk assessment.

It's clearly just for people for whom "What's the worst that could happen?" is always a rethorical question.

Re:Serverless Horrors by seized on Wednesday February 28, 2024 @01:05PM (#39541585)
Glacier IS a cheap way to backup data, in fact the cheapest of you ignore the scam "$200 for life" type things. It's about $1 per TB per month.

It's not cheap to restore though, at about $90 minimum per TB.

So it's best as part of a 3-2-1 system, not for frequent restores.

Re:Serverless Horrors by jmathai on Wednesday February 28, 2024 @10:01AM (#39538795)
Lambda and GCP Cloud Functions do have cost controls. You can specify the maximum number of instances that can be spun up at any given point.

I think the UX can make it more friendly to specify the types of traffic and cost you’re expecting but most erroneous spikes are the result of a customer misconfiguration or a legitimate spike in traffic.

It’s the former which are problematic for customers. They can request a credit and we (GCP) try and accommodate.

It’s not a feature designed for profit. But it also tends to fall below the cut line for prioritization to fix. But it’s in the backlog and doesn’t go unnoticed.

(Former PM on GCP Cloud Functions)

Re:Serverless Horrors by sroussey on Wednesday February 28, 2024 @12:23PM (#39540997)
Do users setup cost controls before activating the service? Or is this something they need to know how to do and do on their own?
Re:Serverless Horrors by jmathai on Wednesday February 28, 2024 @01:08PM (#39541624)
Separate from billing, the product-native cost controls which prevent over-consumption is configured at the resource level.

gcloud run deploy ..... --max-instances=N

Re:Serverless Horrors by fragmede on Wednesday February 28, 2024 @10:17PM (#39546094)
What you really want is prepaid instead of post-paid billing. Charge up the account with $100, and stop working and delete my data if that gets hit, with an auto renew option to recharge some amount every month.
Re:Serverless Horrors by voidwtf on Wednesday February 28, 2024 @10:30PM (#39546136)
That seems a little reductive. I don’t think it’s unreasonable to say, my current spend is ~13k a month. I should be able to set a 20k cap, such that non fixed billable like bandwidth or map tiles get paused while someone determines whether we’d like to proceed at that rate. There is a not so fine line between scaling for a rush/event and a resume generating event.
Re:Serverless Horrors by fragmede on Thursday February 29, 2024 @02:09AM (#39547051)
Okay, fine, that's what I want. :)
Re:Serverless Horrors by hamoodhabibi on Wednesday February 28, 2024 @02:55AM (#39535241)
It used to be we will take your server down. Now its we'll DDOS your serverless website and leave you a 100k bill.

I'm not sure how sustainable such business model is. When you owned the server, you could unplug it. Now you have no way of knowing if somebody is going to hit your /api a million times per minute

Re:Serverless Horrors by andrasbacsai on Wednesday February 28, 2024 @03:05AM (#39535291)
I also prefer to get a (decaf) coffee, listen to some music while someone DDoS'd my VPS. I prefer to pay few $ / month for my VPS instead of paying thousands and "survive" the DDoS.
Re:Serverless Horrors by s9df898r32h on Wednesday February 28, 2024 @06:13AM (#39536493)
I pay $10/year for my VPS and host a WordPress Woocommerce store on it... It doesn't get much traffic, but it didn't take long to pay for itself either
Re:Serverless Horrors by InvOfSmallC on Wednesday February 28, 2024 @07:03AM (#39536802)
where?
Re:Serverless Horrors by s9df898r32h on Wednesday February 28, 2024 @07:57AM (#39537244)
have a look here: https://lowendstock.com/ ... mine is hosted in Russia... but I don't believe all Russians are bad because of a war.

I have had good luck so far on this site for my last 3 VPS', but check the ratings, I guess.

Re:Serverless Horrors by Filligree on Wednesday February 28, 2024 @08:16AM (#39537434)
I explicitly block everything in Russia (and China and Hong Kong) from accessing my servers, because otherwise the rate of SSH attacks is so high it actually prevents SSH from working reliably -- the connection pool fills up.

Just an FYI; I don't think it's that unusual. Blocking those geoips dramatically reduced my logging volume.

Re:Serverless Horrors by s9df898r32h on Wednesday February 28, 2024 @02:08PM (#39542299)
I doubt that clients block outgoing connections to Russian IPs though... so that shouldn't affect me too much.
Re:Serverless Horrors by geek_at on Wednesday February 28, 2024 @03:14AM (#39535348)
true. At what point could you say they are accomplices to the attackers
Re:Serverless Horrors by hamoodhabibi on Wednesday February 28, 2024 @03:22AM (#39535410)
Ah the Yelp biz model:

"would be a shame if somebody read a bad review about your biz, pay us to remove it"

to Netlify

"would be a shame if somebody DDOS'd your serverless website, subscribe to our DDOS protection plan"

Re:Serverless Horrors by bombcar on Wednesday February 28, 2024 @08:43AM (#39537775)
Reminiscent of booter sites behind cloudflare.
Re:Serverless Horrors by kikimora on Wednesday February 28, 2024 @05:35AM (#39536270)
AWS guarantees protection from all DDoS attacks done at level 3-4 (Google aws shield). If someone calls your api million times then there is throttling.
Re:Serverless Horrors by gregoriol on Wednesday February 28, 2024 @07:17AM (#39536915)
So instead of DDoSing someone, you could make some not-so-large amount of requests to their APIs and instead of taking down their servers, you'll just take them down by bankrupting them with a huge invoice?
Re:Serverless Horrors by margorczynski on Wednesday February 28, 2024 @08:08AM (#39537354)
Representational state terrorism
Re:Serverless Horrors by kikimora on Wednesday February 28, 2024 @01:14PM (#39541706)
With default settings an attacker can run up-to 10000 req/sec on your api gw which would result in a sizable bill if left unnoticed. So with AWS you have to configure throttling and AWS protects you from low level ddos. How do you save yourself from a huge traffic bill in a VPS?

AWS also has WAF to protect from DDoS , it is expensive but may save a day if you urgently need a protection.

Re:Serverless Horrors by huijzer on Wednesday February 28, 2024 @02:15AM (#39534985)
I wonder whether they are running out of money which then causes these things. Netlify used to be a very nice and unique service, but then came GitHub, GitLab and Cloudflare Pages who all provide roughly the same services for less money.
Re:Serverless Horrors by ponector on Wednesday February 28, 2024 @05:23AM (#39536171)
Can you use free tier under a fake name? To drop ridiculous bills. How do they validate the customer?
Re:Serverless Horrors by throwaway11460 on Wednesday February 28, 2024 @06:31AM (#39536564)
There is no free plan, there is just free limit - you must add a card.
Re:Serverless Horrors by cs02rm0 on Wednesday February 28, 2024 @07:59AM (#39537263)
Is that new (relative to some previous point in time)? They don't have my card details.
Re:Serverless Horrors by ponector on Wednesday February 28, 2024 @06:44AM (#39536647)
And what if you add a debit card without money? Or add a disposable card and then the next day you deactivate it?

Nowadays everyone push you to add a card to open free* account. Such disposable cards is a solution to this issue.

Re:Serverless Horrors by roygbiv2 on Wednesday February 28, 2024 @06:49AM (#39536687)
Your debt will be sold to a collection company.
Re:Serverless Horrors by ponector on Wednesday February 28, 2024 @09:14AM (#39538184)
Can they find and owner of the inactive card? If I put a fake name to their system
Re:Serverless Horrors by sroussey on Wednesday February 28, 2024 @12:26PM (#39541056)
Your debit card bank has your real name and you agreed to share it to get the card in the first place.
Re:Serverless Horrors by fullspectrumdev on Wednesday February 28, 2024 @10:48AM (#39539491)
In many countries this is meaningless.

I just ignore any horseshit that goes to collections outright

Re:Serverless Horrors by srigi on Wednesday February 28, 2024 @06:26PM (#39544831)
What a great achievement of our society. Inventing a financial instrument to buy and sell debts.
Re:Serverless Horrors by throwaway11460 on Thursday February 29, 2024 @04:28PM (#39555354)
It really is. It decreases the risk and necessary KYC checks so a lot more people can get serviced that would be shown the door in a world where you can't sell a debt.
Re:Serverless Horrors by kl4m on Wednesday February 28, 2024 @06:54AM (#39536732)
Many don't accept prepaid cards.
Re:Serverless Horrors by s9df898r32h on Wednesday February 28, 2024 @04:57PM (#39543983)
just use a virtual card and then change the spending limit to $0? or freeze it
Re:Serverless Horrors by throwaway11460 on Wednesday February 28, 2024 @05:02PM (#39544046)
That still passes your personal info.
Re:Serverless Horrors by s9df898r32h on Wednesday February 28, 2024 @05:12PM (#39544145)
at least you wont get charged without your knowledge... which in the end, is the first step in getting this non-sense fixed, for a person... of course the government should fix it for everyone. This shit should probably be considered fraud anyways... companies get free passes all the time. My name (s9df898r32h) is my company, I should be able to steal whatever I want /s

Why are such large companies so incompetent though...

Re:Serverless Horrors by remram on Wednesday February 28, 2024 @07:37PM (#39545309)
You will have to pay it AND a fee for fraud. You also will have a difficult time arguing that you were in good faith with this kind of shenanigans.
Re:Serverless Horrors by s9df898r32h on Thursday February 29, 2024 @07:44AM (#39548604)
I thought they were the ones committing fraud ... either way you have to be crazy to subscribe to those services
Re:Serverless Horrors by throwaway11460 on Thursday February 29, 2024 @04:29PM (#39555375)
Not really, no. Fraud requires intent.
Re:Serverless Horrors by grubbs on Wednesday February 28, 2024 @08:41AM (#39537754)
So what do I do if this happens to me on the free tier? Just never pay the bill and leave? Will they come after me?