News for hackers. Stuff that matters.
Re:Sourcehut will blacklist the Go module mirror by comex on Monday January 09, 2023 @10:35AM (#34311453)
According to some comments in the linked GitHub issue, including [1] from last May, Drew could have simply asked to be excluded from automatic refresh traffic from the mirror. If I understand correctly, that would still leave traffic from the mirror when it’s acting as a direct proxy for someone’s request, but that is traffic that would be going to sr.ht regardless.

For some reason he did not do this and instead chose an option that causes breakage.

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

Re:Sourcehut will blacklist the Go module mirror by Semaphor on Monday January 09, 2023 @10:40AM (#34311503)
He wrote he was banned in the year after submitting the issue
Re:Sourcehut will blacklist the Go module mirror by FiloSottile on Monday January 09, 2023 @10:44AM (#34311559)
I can confirm asking to be excluded from refreshes (which AFAIK is still a standing offer, but I obviously can't speak for the mirror team because I am not at Google anymore) would stop all automated traffic from the mirror, and that sr.ht could send a simple HTTP GET to proxy.golang.org for new tags if it wished not to wait for users to request new versions.
Re:Sourcehut will blacklist the Go module mirror by throwaway_62022 on Monday January 09, 2023 @11:05AM (#34311883)
I think it is problematic that we are using github issues as "support forum" for asking a git host provider to be excluded from the refresh list. This should not have come to that. Whatever happened to "reasonable defaults", so as a random person hosting a single Go module doesn't get DOSed - https://github.com/golang/go/issues/44577#issuecomment-86087... ?
Re:Sourcehut will blacklist the Go module mirror by FiloSottile on Monday January 09, 2023 @11:15AM (#34311989)
Everyone can make their own assessment of what is a reasonable default and what counts as a DoS (and they are welcome to opt-out of any traffic), but note that 4GB per day is 0.3704 Mbps.
Re:Sourcehut will blacklist the Go module mirror by throwaway_62022 on Monday January 09, 2023 @11:27AM (#34312156)
Comes around $8-11 of egress monthly traffic on AWS. I would think twice before signing up for a service that charges me $10/month - not sure why this should be any different.

Also, how do you opt-out? Imagine a random developer in a startup, running a Gitlab instance and then pushing a Go module there and only to be left with inexplicable traffic pattern(and bill). I have no skin in the game but this default _does not_ sound reasonable to me, whichever way you slice it.

Re:Sourcehut will blacklist the Go module mirror by morelisp on Monday January 09, 2023 @11:56AM (#34312529)
As an aside, I have done this and I do not have the problem. The most interesting question for me in all of this has always been, what triggers Google's request load?
Re:Sourcehut will blacklist the Go module mirror by treis on Monday January 09, 2023 @12:36PM (#34313071)
AWS gouges the crap out of people with their egress fees, though. You can get 20TB of transfer for ~$5 a month from Hetzner plus a server to go with it.
Re:Sourcehut will blacklist the Go module mirror by 0cf8612b2e1e on Monday January 09, 2023 @11:26AM (#34312142)
> A single module can produce as much as 4 GiB of daily traffic from Google.

That’s (upper bound) 4Gib times 2500 per hour. That’s not nothing.

Re:Sourcehut will blacklist the Go module mirror by icy on Monday January 09, 2023 @11:37AM (#34312284)
> but note that 4GB per day is 0.3704 Mbps

That's per Go repository. That's a non-trivial amount of egress data and probably adds up to thousands of dollars a month.

Re:Sourcehut will blacklist the Go module mirror by pas on Tuesday January 10, 2023 @05:08AM (#34322652)
what? why isn't it only checking the checksum file for changes? :o
Re:Sourcehut will blacklist the Go module mirror by nemith on Monday January 09, 2023 @11:23AM (#34312093)
Opt-out is still manual and undocumented process?

I am very concerned that "own assessment" of what is a DoS means that source code is expected to be hosted only on large platform or by large corporation which is another way to say that "the little guys don't matter".

Self hosting of source code should be an option and the proxy should be there to reduce the traffic load, not amplify or artificially increase that load despite the "level of DoS".

One thing Drew is asking for is to respect robots.txt to allow the operator to determine what a reasonable level is for that operator and not apply a github bias to it.

Re:Sourcehut will blacklist the Go module mirror by jallbrit on Monday January 09, 2023 @11:24AM (#34312109)
Per Go module repository, no?
Re:Sourcehut will blacklist the Go module mirror by rakoo on Monday January 09, 2023 @12:29PM (#34312975)
This way of thinking is the exact opposite of what we need to do in the IT for reducing our impact on the environment. 4 GB is an enormous amount of data. It's enough to listen to 21k hours of music, or having a small dump of all french wikipedia (no pics, main paragraph). It's enough to completely travel off-line in Germany. It's enough to watch 3 to 4 movies in a good resolution. And that's per day.

We must absolutely reduce our resource usage.

Re:Sourcehut will blacklist the Go module mirror by Beltalowda on Monday January 09, 2023 @02:15PM (#34314641)
That 4GB figure is for a repo at git.lubar.me, a self-hosted git repo where – quoting the person running it – "I am the only person in the world using this Go module".

In this context, that seems like a lot. Of course the module mirror can't know about this context, but there are certainly a lot of scenarios where this is comparatively a lot of bandwidth. Not everyone is running beefy servers.

Seems like an exceedingly poor and unreasonable default, and it doesn't take much imagination to see how this could be improved fairly easily (e.g. scale to number of actual go gets would already be an improvement).

Re:Sourcehut will blacklist the Go module mirror by stonogo on Monday January 09, 2023 @12:47PM (#34313254)
Seems like a weird default policy, until you remember Google's wifi mapping opt-out process: https://support.google.com/maps/answer/1725632?hl=en#zippy=%...

"All this would go away if other people would just do what they're told" is a pretty dystopian policy, but it seems to be a popular choice in Google.

Re:Sourcehut will blacklist the Go module mirror by kramerger on Tuesday January 10, 2023 @02:45AM (#34321725)
That right there is why i stopped using Google.

Anyway, things get a bit kafka-esque when you realise that there is another company doing this WiFi thing and to opt out from that one you need a different SSID suffix. Since you can't have both, you end up with at least one company data mining you.

Why GDPR has not put a stop to this is baffling

Re:Sourcehut will blacklist the Go module mirror by samwyse on Tuesday January 10, 2023 @04:00PM (#34331395)
I’ve got to ask, which other Wi-Fi mapping provider requires a SSID suffix to opt out? Is it one of the big boys or is it someone like wigle.net or openwifimap.net?
Re:Sourcehut will blacklist the Go module mirror by tristan957 on Monday January 09, 2023 @06:12PM (#34317903)
Should every person that hosts an instance of SourceHut, Gitea, or Forgejo have to opt-in to this? That just doesn't scale at all. Drew is standing up for all independent hosters as much as he is standing up for his own business interests.
Re:Sourcehut will blacklist the Go module mirror by jdiff on Monday January 09, 2023 @09:24PM (#34319589)
No other independent hosters are having issues. I'm on one with no more than a few dozen users. Multiple of us write in Go, including the owner of the service, and yet Gitea and the VPS hosting it have never even blinked. If there were more of an issue, there would be more of a fuss than just two individuals. And one of those individuals was completely satisfied with the temporarily hackjob while a more permanent solution has been in the works. The other just denied it with no reason ever given cause he wants to keep litigating the issue.
Re:Sourcehut will blacklist the Go module mirror by deelly on Tuesday January 10, 2023 @03:08AM (#34321882)
> No other independent hosters are having issues.

I could be wrong but in comments to https://github.com/golang/go/issues/44577 issue there at least 4 hosters that forced to manually disable background refresh because of this exactly issue?

Re:Sourcehut will blacklist the Go module mirror by jdiff on Tuesday January 10, 2023 @08:37AM (#34324652)
How are you getting that number? There's Drew, who refused all solutions offered. There's Ben, who took the offer and was satisfied. If you're counting Gentoo, which is linked, you shouldn't because that's an unrelated issue caused by a regression test.