News for hackers. Stuff that matters.
Re:Google has been DDoSing Sourcehut for over a year by cookiengineer on Wednesday May 25, 2022 @04:41PM (#31510246)
How are his arguments in bad faith if he is the one that gets DDoSed by your software for over a year, and still tries to be helpful?

Not sure if you realize the absurdity of this, but he has to pay traffic and server costs. Like everyone else, except probably Google as it seems!?

I mean, you didn't even consider implementing a simple fetch of an already cloned repository in your mirroring server code. So yeah, I'd argue that the bad faith part is actually justified.

Re:Google has been DDoSing Sourcehut for over a year by johnduhart on Wednesday May 25, 2022 @04:54PM (#31510405)
> I mean, you didn't even consider implementing a simple fetch of an already cloned repository in your mirroring server code. So yeah, I'd argue that the bad faith part is actually justified.

https://github.com/golang/go/issues/44577#issuecomment-11378...

> We did consider caching clones, but it has security implications and adds complexity, so we decided not to. It is certainly not trivial to do and not something we are likely to do based on this issue.

Drew continues to act as though he is always correct, and any viewpoint that isn't his is just moronic. I've repeatedly seen this behavior from him in multiple venues over the years, and I'm happy to see the wider community start calling this out as childish.

Re:Google has been DDoSing Sourcehut for over a year by ziml77 on Wednesday May 25, 2022 @05:28PM (#31510809)
I don't particularly care for Drew, but the issue he's reported here seems totally valid. And if he requested that he be excluded from getting hit by the crawler, wouldn't that mean it would be impossible for people to use packages from sr.ht unless they change their config?

Plus, it does seem reasonable to think that only one of the crawlers needs to hit the site. The global replication can happen at the FS level or, heck, the crawlers can just perform pulls from each other.

Re:Google has been DDoSing Sourcehut for over a year by tptacek on Wednesday May 25, 2022 @06:28PM (#31511538)
No. According to the Go project, adding his site to the exclusion list would reduce traffic to his site at the cost of freshness of the data the proxy collects; it would not make it "impossible" for people to use packages from sr.ht.

This is all in the thread that DeVault linked to from his post.

Re:Google has been DDoSing Sourcehut for over a year by tete on Thursday May 26, 2022 @05:04PM (#31523341)
Which would still be far from great for any kind of source hosting website.
Re:Google has been DDoSing Sourcehut for over a year by tptacek on Thursday May 26, 2022 @05:22PM (#31523530)
In what way would it be "far from great"?
Re:Google has been DDoSing Sourcehut for over a year by tete on Thursday May 26, 2022 @05:59PM (#31523842)
Well, why have that proxy/functionality in first place if the best option is to disable it?
Re:Google has been DDoSing Sourcehut for over a year by tptacek on Thursday May 26, 2022 @06:12PM (#31523939)
I don't even understand the question you're asking. Nobody is suggesting the proxy be disabled, including for sr.ht.

It's OK not to know the specifics of what this is about, but it's weird to have strong opinions about it if you don't.

Re:Google has been DDoSing Sourcehut for over a year by AlotOfReading on Wednesday May 25, 2022 @05:21PM (#31510721)
Drew can often be very abrasive, but does it really matter in this case? His site is basically being DDoS'd.

Yes, there are decent arguments why the golang infra doesn't cache or respect typical norms like robots.txt, but they don't change the unreasonableness of the underlying situation. Surely some mitigation could have been worked out in the year since the ticket was filed?

Re:Google has been DDoSing Sourcehut for over a year by res0nat0r on Wednesday May 25, 2022 @05:43PM (#31510995)
They offered to turn off refreshing of his domain it appears on Jun 8, 2021: https://github.com/golang/go/issues/44577#issuecomment-85692...
Re:Google has been DDoSing Sourcehut for over a year by prepend on Wednesday May 25, 2022 @08:29PM (#31512756)
That doesn’t seem like a solution at all and is actually kind of punative as that would make srht bad for hosting go.

I think this is just an example of Google being a jerk and not caring enough to do proper software engineering.

Go seems really interesting but I have avoided using it because it’s so tied to Google. And I don’t trust Google to make good decisions for developers or users.

Re:Google has been DDoSing Sourcehut for over a year by lupire on Wednesday May 25, 2022 @09:08PM (#31513031)
It looks like a solution to me: Google stops proactive refreshing, and so users get data that is fresh up to the cache timeout.

Users who can't wait that long can disable the proxy, and SourceHut can recommend users do that.

Re:Google has been DDoSing Sourcehut for over a year by opmac on Thursday May 26, 2022 @02:25PM (#31521762)
Perfect succinct response. It is a 100% viable workaround.
Re:Google has been DDoSing Sourcehut for over a year by tptacek on Thursday May 26, 2022 @12:53AM (#31514740)
Can you articulate why it isn't a solution, and how it would be punitive? There are people on this thread who appear to believe Google's workaround would mean that repositories hosted on sr.ht would be unusable as Go modules, which is not at all the case.
Re:Google has been DDoSing Sourcehut for over a year by rurban on Thursday May 26, 2022 @02:59AM (#31515492)
drew articulated it very well why google's offer doesn't help at all.

https://github.com/golang/go/issues/44577#issuecomment-85693...

A full git clone just to DDOS a hoster to check if the user-experience is still first-class, and filling a proxy is not an acceptable solution for a module hoster who has the pay the hosting bills by himself.

If they want to know if their proxy is still uptodate, a cheap latest change request 8x/hour would be appropriate.

> Have you considered the robots.txt approach, which would simply allow the sysadmin to tune the rate at which you will scrape their service? The best option puts the controls in the hands of the sysadmins you're affecting. This is what the rest of the internet does.

> Also, this probably isn't what you want to hear, but maybe the proxy is a bad idea in the first place. For my part, I use GOPROXY=direct for privacy/cache-breaking reasons, and I have found that many Go projects actually have broken dependencies that are only held up because they're in the Go proxy cache — which is an accident waiting to happen. Privacy concerns, engineering problems like this, and DDoSing hosting providers, this doesn't looks like the best rep sheet for GOPROXY in general.

Re:Google has been DDoSing Sourcehut for over a year by tptacek on Thursday May 26, 2022 @09:06AM (#31517844)
You didn't answer my question. What's the problem with the Go team's workaround? I get that DeVault would like to redesign the Go modules system to suit his own preferences, but that's not on the table.
Re:Google has been DDoSing Sourcehut for over a year by nyberg on Thursday May 26, 2022 @11:27AM (#31519534)
The issue isn't the Go module system but rather their proxy which is not part of Go and should respect server resources but doesn't. The workaround makes any 3rd party host for go modules a bad choice as packages will always be stale.

The issue has nothing to do with DD other than him raising the issue and being ignored. The fault is with google.

Re:Google has been DDoSing Sourcehut for over a year by tptacek on Thursday May 26, 2022 @11:38AM (#31519681)
How exactly does the workaround make packages "always be stale"?
Re:Google has been DDoSing Sourcehut for over a year by kageurufu on Thursday May 26, 2022 @05:08PM (#31523390)
What would be the problem with the go team doing a quick `git ls-remote` instead of jumping to a full clone? All it would take is tracking the last `ls-remote` result in any of the Google's many options for databases, and only doing a clone when the remote updates.
Re:Google has been DDoSing Sourcehut for over a year by tptacek on Thursday May 26, 2022 @05:21PM (#31523524)
Maybe there's no problem? It's totally fair to critique the design of the current module proxy. The odds of them developing precisely the right proxy were low; of course we'll be able to come up with things they can do better. That's how open source works.

It's when we turn this into a morality play that we go off the rails.

Re:Google has been DDoSing Sourcehut for over a year by asojfdowgh on Friday May 27, 2022 @01:54AM (#31526417)
Considering they don't want caching, la what is considered basic rudimentary politeness, (and noting that the change increased traffic, so the proxy was intentionally doing busywork that no-one wanted or needed), The odds of them developing an unacceptable proxy were 100%

Its akin to putting up an open exploitable DNS resolver in 2022 despite, with 2 seconds of research, the entire world telling you not to do that

no one needs to full clone 2 times a minute just to check if a security update exists

one of the top money generating machines does not need a devil's advocate

Re:Google has been DDoSing Sourcehut for over a year by tptacek on Friday May 27, 2022 @02:14AM (#31526522)
Yeah so basically none of this is true? "Caching" is not considered basic rudimentary politeness, and what they did is not at all like putting up an "open exploitable DNS resolver" (also: putting up an "open exploitable DNS resolver" is pretty much still an industry norm). The "money generating machines" stuff doesn't add to the credibility of this argument.

I get that you feel like you could design a better Go module proxy. It would be weird if you couldn't, because you have the benefit of seeing what happened when we deployed this one†. Congratulations? It's an achievement, I guess?

For my part, I'd be thrilled if just a single person could articulate exactly what the impact to DeVault's code hosting service would be if he took the Go project's offer up on just not having them clone modules hosted on his service so often. Anybody at all, if you could just explain what the problem would be here, I'd be forever grateful.

† (to wit: Go got a lot better, and apparently just 2 source hosts on the entire Internet had a problem with it, one of whom was fixed directly and the other of whom is apparently still mulling whether they want to burn the extra bandwidth for a cacheing benefit that literally nobody on the Internet seems to be able to describe).

Re:Google has been DDoSing Sourcehut for over a year by asojfdowgh on Friday May 27, 2022 @02:50AM (#31526727)
> "Caching" is not considered basic rudimentary politeness

You don't consider this a truth, I do. By google's standards it is a truth, https://cloud.google.com/web-risk/docs/caching for one example

> I get that you feel like you could design a better Go module proxy.

I add "sleep 1" at minimum to all my scraping loops, and refuse to use clients that don't keepalive and cache (if I'm hitting the same endpoint), I've done this always, so yes I could have designed a better proxy today, and a year ago, and two years ago, and three years ago, et, al.

> Money generating

They can pay people, I'm not doing it for free for a language I don't use

> if he took the Go project's offer up on just not having them clone modules hosted on his service so often.

Do you know that he hasn't tried? considering how well google responds to emails

Some people have principles that you might not understand, I too would not ask someone to not DDoS me, because I feel that is an absurd request.

So not a impact to the technical aspects but to the administrative aspects. People are paying devault to run a service as devault would, it would be improper for him to not run the service as expected of him.

> burn the extra bandwidth for a cacheing benefit that literally nobody on the Internet seems to be able to describe

bandwidth and CPU time both cost money

- - -

There are alternative approaches that have existed before 1.16, Deno with its pull once then pull only when told to approach, has not had a crisis of security, Every other language works on demand, NPM at most checks a dedicated security issues API designed for mass consumption. These things existed, none of them were referenced.

Re:Google has been DDoSing Sourcehut for over a year by tptacek on Friday May 27, 2022 @02:53AM (#31526740)
Do you know that he hasn't tried? considering how well google responds to emails

You can't reasonably build an argument by just making stuff up. Maybe, against all evidence, Google offered to stop hitting sr.ht with Go proxy cache refresh requests and then ignored DeVault when he took them up on it. But I'm not required to assume that very weird situation is what actually happened.

Re:Google has been DDoSing Sourcehut for over a year by ocdtrekkie on Wednesday May 25, 2022 @05:02PM (#31510512)
In this case, it's really hard to see thrashing other people's servers relentlessly to collect data you already have as anything but incredibly, incredibly poor engineering. Y'all should write him a check for that much resource waste.
Re:Google has been DDoSing Sourcehut for over a year by rasz on Wednesday May 25, 2022 @08:07PM (#31512565)
This comes to mind: https://news.ycombinator.com/item?id=31496063

>At Google we were told to stop thinking about all this stuff, that the storage hardware and software people were responsible for hiding things like wearout from application developers.

Something tells me this team was told to "stop thinking about all this stuff, that the network people were responsible for hiding things like speed, latency and cost from application developers." aka network is infinite, keep pounding that repo and we will scale accordingly (our side of the equation, sucks to be other people)

Re:Google has been DDoSing Sourcehut for over a year by adamrezich on Wednesday May 25, 2022 @05:05PM (#31510540)
without knowing anything about this situation outside of this thread and the post it links to, it comes across as willful negligence to screw over someone who was a bother in past community transgressions
Re:Google has been DDoSing Sourcehut for over a year by tptacek on Wednesday May 25, 2022 @06:30PM (#31511561)
That's a risible suggestion. Even DeVault doesn't say that.
Re:Google has been DDoSing Sourcehut for over a year by verdverm on Wednesday May 25, 2022 @05:17PM (#31510682)
It's less than $200 per month to send out 4G daily. If his business can't afford that, there is something else going on.

What is the total daily bandwidth that sourcehut uses anyway? What percentage is go module fetching?

Re:Google has been DDoSing Sourcehut for over a year by cycomanic on Wednesday May 25, 2022 @05:28PM (#31510810)
The 4G daily was a different user who hosted a go module where he was the single user on his own server, this was not DeVault.

I'd be pretty pissed if I hosted a go module essentially for myself and suddenly I have a $200 dollar bill, because google decided to clone my repository 500 times a day. If it doesn't bother you, how about you donate $200 a month to a charity of my choosing, because it doesn't matter to you.

Re:Google has been DDoSing Sourcehut for over a year by verdverm on Wednesday May 25, 2022 @05:33PM (#31510875)
Self hosting costs money, for this one user it would seem the options of blocking or other options are more tenable

If money was a problem, I'd expect this individual to ha e rectified it on their end

Re:Google has been DDoSing Sourcehut for over a year by cycomanic on Wednesday May 25, 2022 @09:13PM (#31513063)
So tell me why do people use DDoS protection? It's just money. If you run a server you should be able to eat all the cost!

Seriously do you follow through what your arguments actually mean if applied in general?

Re:Google has been DDoSing Sourcehut for over a year by verdverm on Thursday May 26, 2022 @06:39PM (#31524144)
There was no actual DDoS, so no need to compare

Should every language be responsible for paying the bandwidth bills for dependencies?

You might look at the most recent comment from the Go team on the issue, there have been no additional requests or events since they last resolved it for both of the effected parties

Re:Google has been DDoSing Sourcehut for over a year by nirvdrum on Wednesday May 25, 2022 @05:36PM (#31510918)
Plenty of bootstrapped businesses have better things to spend $200 / month on, let alone the time spent trying to figure out where all the anomalous traffic is coming from. As I understand it, it's not simple file fetches either. It's cloning a repo, which involves two-way communication, consumes CPU and RAM, and causes disk seeks. You're not slapping it on CloudFront and calling it a day. Finally, it looks to me like the costs are going to scale the more people he has using sourcehut and writing Go modules.

I don't really understand turning this around on him. Why should he have to subsidize Google? If it's not a problem, why do we have robots.txt at all? Just let bots hammer your site and cope with it.

The current situation can't be the optimal solution. It wasn't even present prior to Go 1.16. Only one company has the ability to change that. What should he do differently here? Why should he have to spend any of his time or money working around an issue he didn't create?

Re:Google has been DDoSing Sourcehut for over a year by ocdtrekkie on Wednesday May 25, 2022 @05:26PM (#31510799)
That was a different user. The fact that a user not running a git hosting service is potentially eating $200 a month should queue you into the fact that the cost to Drew is likely drastically higher than that.

Google should be sending reimbursement checks for the damage done here on this issue.

Re:Google has been DDoSing Sourcehut for over a year by verdverm on Wednesday May 25, 2022 @05:36PM (#31510919)
Drew is running a code hosting business and this is a cost of providing a feature to the users. He can pass the costs on if it is a problem. He has lots of options and his competitors are not making a big deal out of this.

I suspect he's drawn his line in the sand and wants to keep it going rather than finding a solution that works without requiring upstream changes.

Re:Google has been DDoSing Sourcehut for over a year by Arch-TK on Wednesday May 25, 2022 @07:26PM (#31512196)
If I provide a paid service and someone abuses it I must deal with it because my larger competitors deal with it? It's good to know that small businesses have no place in the modern world.
Re:Google has been DDoSing Sourcehut for over a year by stefan_ on Wednesday May 25, 2022 @05:03PM (#31510516)
> but it has security implications and adds complexity

Read: we prefer to use your servers for caching. Not good enough. Maybe the issue is people making silly evasive arguments like these while the server load piles on?

Re:Google has been DDoSing Sourcehut for over a year by rfoo on Wednesday May 25, 2022 @04:47PM (#31510320)
> and still tries to be helpful

"Assuming everyone else have exactly same design choice and architecture as yourself, making suggestion on this ground and calling other people crazy because they can't implement what you suggest them to do" is not trying to be helpful.

Well, or maybe I'm just frustrated reading his repeated "please keep a copy 'locally' somewhere and run git fetch". Just like how I'm frustrated arguing with him on HN about whether sending patch to mail list is better than GitHub pull request.

Don't get me wrong, I understand this is a real Google-scale system v.s. individual code hosting website issue, I just don't see how his "please stop being Google and instead try my works-fine-on-one-box solution" take is helpful.

Re:Google has been DDoSing Sourcehut for over a year by cycomanic on Wednesday May 25, 2022 @05:10PM (#31510594)
I often don't agree with DeVaults opinions, however the design decision here is actually costing other people real money and I have not seen a convincing argument why it is necessary. Instead they acknowledge it's an issue, but then continue that behavior for nearly a year, which IMO shows complete disregard for smaller services or individuals hosting their own repositories.
Re:Google has been DDoSing Sourcehut for over a year by thaway2839 on Wednesday May 25, 2022 @05:15PM (#31510664)
Suggesting ideas is not the same as assuming everyone else should have the exact same design choice and architecture. The problem is that the actual issue owner on the Google side does not appear to have any solutions (or is burying solutions because they may be too complex).

It's pretty clear that the issue owner agrees there is something wrong here. That's why the issue is kept open and their only reason for not fixing it is that it's a complicated fix which requires effort.

As a workaround, they offer Drew the opportunity to essentially disable his service from being used as a useful source of Go modules.

Re:Google has been DDoSing Sourcehut for over a year by ocdtrekkie on Wednesday May 25, 2022 @05:04PM (#31510527)
Cloudflare manages to cache things and then serve them to lots of people, without having to request the same content 50 times an hour. Maybe Google should move some of their services over to a better content delivery platform? o.O

This is a scenario where anyone who isn't a Googler can see that "being Google" is not a justification for bad engineering. Do better.

Re:Google has been DDoSing Sourcehut for over a year by ajford on Wednesday May 25, 2022 @06:33PM (#31511611)
Just about every CDN out there manages to cache at a global scale from a single hit, so I don't understand what's so vastly different about the go mirror system that it can't do the same under the hood.
Re:Google has been DDoSing Sourcehut for over a year by arccy on Wednesday May 25, 2022 @04:48PM (#31510342)
bad faith refers to his behavior on other issue threads. also he (used to) spam the issue tracker with ads for his services
Re:Google has been DDoSing Sourcehut for over a year by cookiengineer on Wednesday May 25, 2022 @05:21PM (#31510723)
> also he (used to) spam the issue tracker with ads for his services

Do you have links to those ad spams? I couldn't find obvious ones when I was using GitHub's issue search field.

Edit: It seems ddevault opened and/or replied to only 10 issues, which I would hardly call "spam".

Re:Google has been DDoSing Sourcehut for over a year by pengaru on Wednesday May 25, 2022 @04:58PM (#31510449)
> also he (used to) spam the issue tracker with ads for his services

If there's any entity I'm totally ok with anyone spamming with ads, it's Google.

Re:Google has been DDoSing Sourcehut for over a year by tptacek on Wednesday May 25, 2022 @06:31PM (#31511573)
It's not "Google" you'd be spamming, it's the Go language community, most of which has nothing to do with Google. Please don't make high-drama arguments like this.
Re:Google has been DDoSing Sourcehut for over a year by szbalint on Wednesday May 25, 2022 @05:10PM (#31510601)
“DDoSed”

He complains about outgoing traffic of 4GB/day. On a server. In 2022.

If this is an issue he should not be hosting Go modules on his own servers.

Re:Google has been DDoSing Sourcehut for over a year by thaway2839 on Wednesday May 25, 2022 @05:13PM (#31510634)
4 GB/day is a different person facing the same issue who is hosting a single module they claim is likely only used by them.
Re:Google has been DDoSing Sourcehut for over a year by Ventito on Thursday May 26, 2022 @08:05AM (#31517299)
Still whats 4GB a day?

I really really don't get the issue.

Is he io bound? Is there no reasonable way for git hosting services to actually cache git checkouts?

DDoS / DoS should only be used, in my opinion, when the server goes down complelty not if it has a little bit of load and i still haven't seen anything which indicates that this is a real issue?

And i don't want to come across negativly, i just don't get the issue.

Re:Google has been DDoSing Sourcehut for over a year by tete on Thursday May 26, 2022 @05:24PM (#31523554)
Given that Google decides to do that effectively out of bad design.

What if your website hosted 100 Go modules and it scales linearly, that's 400GB, still not a problem? What if every programming language did that?

I don't really understand how that's not an issue. Sure it's not a big deal, if just one service does that, but it's still something that should be fixed. If you are Google it should be expected that this fix is not taking over a year.