News for hackers. Stuff that matters.
Re:The GMP library's repository is under attack by a single ... by progval on Sunday June 18, 2023 @10:42AM (#36380702)
Re:The GMP library's repository is under attack by a single ... by CtrlAltDelete51 on Sunday June 18, 2023 @10:53AM (#36380821)
That seems like a perfectly reasonable response. They even provided the project so GMP could reach out.
Re:The GMP library's repository is under attack by a single ... by burkaman on Sunday June 18, 2023 @11:02AM (#36380905)
It's totally reasonable to say that it isn't malicious and they aren't going to stop it, but it's unreasonable and unhelpful to add "seems like your servers just suck". They also missed or failed to mention that there are 700 forks of the project running the same thing at the same time.
Re:The GMP library's repository is under attack by a single ... by 542458 on Sunday June 18, 2023 @11:12AM (#36380996)
I’m a bit confused as to why 700 automated clone requests per day would be an unreasonable amount of traffic for a project like GMP. That doesn’t sound like much traffic to me. Is cloning a mercurial repo highly server intensive?
Re:The GMP library's repository is under attack by a single ... by jeroenhd on Sunday June 18, 2023 @11:23AM (#36381089)
Those 700 clones would all hit at exactly the same time. That's quite a load for a single server, especially since Mercurial can't be cached that easily.
Re:The GMP library's repository is under attack by a single ... by chongli on Sunday June 18, 2023 @11:30AM (#36381143)
So if they're all hitting at exactly the same time, why not set up a firewall rule to block traffic from GitHub at exactly that time of day?
Re:The GMP library's repository is under attack by a single ... by miyuru on Sunday June 18, 2023 @11:52AM (#36381339)
Setting up a rate limiter is the correct way forward, and using IP block as the nuclear option.
Re:The GMP library's repository is under attack by a single ... by Mathiasdm on Monday June 19, 2023 @01:43AM (#36387695)
Mercurial clones can be cached quite easily with 'clonebundles', a Mercurial feature that allows redirecting a clone to instead download a single 'bundle' (which could come from a different server or set of servers).

See https://wiki.mercurial-scm.org/ClonebundlesExtension

Re:The GMP library's repository is under attack by a single ... by matheusmoreira on Sunday June 18, 2023 @11:16AM (#36381023)
I'm confused as well. Seems like a negligible amount of traffic at first glance. The administrator mentioned compression, could it really have such a big impact?
Re:The GMP library's repository is under attack by a single ... by eddythompson80 on Sunday June 18, 2023 @11:21AM (#36381075)
Especially if you’re running powerful server-class hardware and great connectivity to the Internet.
Re:The GMP library's repository is under attack by a single ... by CtrlAltDelete51 on Sunday June 18, 2023 @11:51AM (#36381328)
^ So much this. From the assumption of malicious activity (which is a far leap given such a predictable pattern of calls), to bragging about “server-class hardware” and “great connectivity”, this doesn’t seem like a super solid setup.

In before “it’s just one guy”: there are a thousand ways to solve this that are not expensive or complicated.

Should the offending party have been a better consumer? Yes.

Is it fair to entirely blame the user versus implementing additional caches and safeguards to make it an annoyance and not the end of the world emergency GMP is making it out to be? Definitely not.

Re:The GMP library's repository is under attack by a single ... by eddythompson80 on Sunday June 18, 2023 @04:46PM (#36384284)
Hyperbole never ceases to amaze me. On one hand, I know how wasteful "CI" systems are. We offer a docker image from a custom docker registry. Since we started offering it 3 years ago, we've had 1 billion pulls. 990 million pulls were from CI systems. But to claim that the operator of those CI systems is "attacking" us would be pretty bizarre. Though bizarre seems to govern online discourse when it comes to most things
Re:The GMP library's repository is under attack by a single ... by burkaman on Sunday June 18, 2023 @11:16AM (#36381027)
I don't know if it's an unreasonable amount of traffic but it's certainly worth mentioning, 1 repo vs. 700 is a big difference.
Re:The GMP library's repository is under attack by a single ... by jasonjayr on Sunday June 18, 2023 @11:50AM (#36381323)
It's 700 automated clone requests at the same moment due to inheriting a cronjob.
Re:The GMP library's repository is under attack by a single ... by matheusmoreira on Sunday June 18, 2023 @12:41PM (#36381839)
I dunno. To me it seems like if a web server can't deal with 700 simulatenous requests it should probably call it quits. They're of course within their rights to just block the connections but it certainly doesn't look like a denial of service attack to me. Submitting a link to HN probably causes even bigger traffic spikes.
Re:The GMP library's repository is under attack by a single ... by dspillett on Sunday June 18, 2023 @02:55PM (#36383169)
700 simultaneous static requests certainly. 7,000+ in fact. Even 700 average requests for dynamic content. But each of those request was to clone a repo which is not an average dynamic request: each require a fair amount of CPU time (and possibly IO thought hopefully the server(s) have enough RAM for cache for that but to be the case).
Re:The GMP library's repository is under attack by a single ... by 542458 on Sunday June 18, 2023 @12:07PM (#36381486)
Sure, but even if each clone tied up an entire core of their Epyc 7402P for 5 seconds (which seems pessimistic to me) the entire traffic spike would be over in 2.5 minutes.
Re:The GMP library's repository is under attack by a single ... by lern_too_spel on Sunday June 18, 2023 @02:15PM (#36382758)
The original email said that a single instance would make 100 requests in parallel, so 700 instances would make 70k clone requests at the same time.
Re:The GMP library's repository is under attack by a single ... by cxr on Sunday June 18, 2023 @03:15PM (#36383375)
> it's unreasonable and unhelpful to add "seems like your servers just suck"

What is the basis for this quote? Ctrl+F-ing on what look like the relevant pages turns up nothing. Maybe I missed it, but Google seems only to know about 1 instance of phrase from the last week (and it's the one in your comment).

Re:The GMP library's repository is under attack by a single ... by WastingMyTime89 on Sunday June 18, 2023 @11:00AM (#36380896)
That’s in line with the response I’m used to get from cybersecurity teams at the large company I work for. It is neither reasonable nor appropriate in tone but I have got used to it being apparently the best they can do/can be bothered to write.