News for hackers. Stuff that matters.
Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by grishka on Friday May 14, 2021 @12:05PM (#27155764)
As I user, I simply don't care. I repeatedly get punished for doing nothing wrong. It's almost like airport security.

> What does your cdn solution look like?

> Route optimization from your (single) endpoint to clients literally half a world away?

And as a developer, I don't understand this newfangled obsession over CDNs either. Yes, there will be 200 ms RTT in some cases. So what? Get over it. Optimize your website to load in fewer round-trips. TCP congestion control adapts well enough to any latency. RTT only really matters in gaming and VoIP.

Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by ehutch79 on Friday May 14, 2021 @12:27PM (#27156093)
that 200ms rtt does matter to users. it becomes very noticeable. especially when you're writing an app, not a brochure site. You need to tree shake so you're not serving a huge spa all at once.

I've see much worse times for users, and a cdn absolutely help with our staff in asia dealing with our internal apps.

Of course they're not always tripping up cloudflare and being shown captchas. I almost _never_ see a cloudflare captcha either... huh...

Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by gsich on Friday May 14, 2021 @01:30PM (#27157085)
What use has an app that requires a full RTT fot every buttonpress?
Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by ehutch79 on Friday May 14, 2021 @01:37PM (#27157197)
None? Why would every button press require a full rtt?
Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by gsich on Friday May 14, 2021 @02:07PM (#27157621)
>that 200ms rtt does matter to users. it becomes very noticeable. especially when you're writing an app, not a brochure site. You need to tree shake so you're not serving a huge spa all at once.

Because this implies that.

Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by ehutch79 on Friday May 14, 2021 @02:55PM (#27158295)
No it doesn't. at all.

Page load speeds by themselves can be painful. Open devtools and have your browser throttle to poor 3g speeds.

Try browsing around. even well optimized sites.

Now try uploading a couple dozen files through an api.

This is legit what some users deal with. In New York state even, you don't need to go that far to find poor connectivity.

Even if all your users have awesome home connections, think sales people taveling to a client. or on site inspections of a manufacturer in a warehouse that's mostly metal and has bad wifi.

Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by Dylan16807 on Friday May 14, 2021 @03:48PM (#27158931)
If you're on 3G I would expect sites to load in a similarly bad way with or without an extra most of 200ms of RTT.
Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by ehutch79 on Friday May 14, 2021 @05:53PM (#27160095)
The throttling in dev tools is meant to represent that latency...
Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by Dylan16807 on Friday May 14, 2021 @06:53PM (#27160511)
If setting it to 3G is supposed to represent just 200ms latency, that's going to give you a very exaggerated and misleading impression of how bad it is. It's a meaningless test.

I thought you were giving an example of how bad connections can get, and saying that the extra latency would make it worse, but in that situation it's a drop in the bucket.

Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by gsich on Friday May 14, 2021 @03:03PM (#27158398)
Then what does the 200ms have do with "writing an app"?
Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by ehutch79 on Friday May 14, 2021 @03:23PM (#27158627)
Apologies, your username looks like the one that tossed that number out as a what they assumed was a high number.

200ms latency isn't that bad, but I'm seeing more 800-2000ms latencies with some users depending on physical location. at some point latency kills usability. Especially when trying to get through a complicated QA or inventory process.

Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by withinboredom on Friday May 14, 2021 @07:01PM (#27160569)
That latency is literally impossible unless they’re up in space somewhere, beyond satellite orbit. Your latency is most likely caused by CPU on low-end devices. A CDN won’t help you with that (and probably be harmful having to manage another TCP connection).
Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by nijave on Friday May 14, 2021 @09:53PM (#27161569)
I few years back I was seeing about 15-30s latency on 2G EDGE. Overloaded links can have high latency due to queuing which CDNs tend to help
Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by ehutch79 on Friday May 14, 2021 @10:22PM (#27161717)
Any latency over he speed of light is possible. In this case you’re seeing people in bad places, like rural China, or Long Island...
Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by simfree on Friday May 14, 2021 @08:11PM (#27161030)
I see latency spike like this often on T-Mobile LTE. One second your under 40ms ping, then your next ping clocks in at 794ms or 2100ms despite having good signal strength.
Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by aseipp on Friday May 14, 2021 @02:11PM (#27157698)
> Yes, there will be 200 ms RTT in some cases. So what? Get over it.

You're missing a zero in that RTT for users in places like Asia if your server is anywhere in the west. (It's actually somewhat revealing when someone throws out a number like this without any qualification; what exactly made you conclude 200ms is the magic number?)

> Optimize your website to load in fewer round-trips. TCP congestion control adapts well enough to any latency. RTT only really matters in gaming and VoIP.

You don't need a very big imagination to think about cases where RTT will have significant impacts e.g. in the event you need to issue multiple sequential requests that are dependent on one another. These are unavoidable and occur often in more than just websites, but anything that e.g. uses HTTP as an API (a very simple one is something like recursively downloading dependencies.)

This comes across as a classic "I don't actually understand the problem domain very well at all, but get off my lawn" answer to the problem.

Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by grishka on Friday May 14, 2021 @02:51PM (#27158258)
> You're missing a zero in that RTT for users in places like Asia if your server is anywhere in the west.

Well, it does say 130 ms in here: https://www.quora.com/How-long-would-it-take-for-light-to-fl...

And that's around the planet, to go around and end up at the same spot. In practice, with sanely-configured routes, your packets should never need to traverse more than half that distance. So, divide it by 2, then that cancels out because RTT is a measure of how long it takes for a signal to travel back and forth. You then add some time on top of that to account for buffering and processing in the various equipment along the way.

> These are unavoidable and occur often in more than just websites, but anything that e.g. uses HTTP as an API (a very simple one is something like recursively downloading dependencies.)

If you mean REST API requests, the kind that trigger some code to dynamically generate a response, how would a CDN solution like cloudflare help? The request still needs to get to the server and the response still needs to come back, all the way, because that's where that code runs. CDNs only really work for cacheable static content, don't they? I mean it's in the name.

A blog or a news website certainly doesn't need a CDN.

Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by robocat on Friday May 14, 2021 @04:19PM (#27159249)
I live in New Zealand, definitely a first world country with first world infrastructure. Ping times to US East or Europe are over 300ms right now from my home[1].

My old business had users in countries around the world, and the assets were highly optimised for speed. However adding CloudFlare (a) significantly sped up our service to clients, especially those in Asian countries, and (b) significantly improved reliability of connections because CloudFlare have their own dedicated network links between countries and/or optimised for reliability.

[1] https://www.cloudping.info/

Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by comex on Friday May 14, 2021 @04:00PM (#27159051)
There's no need to guess based on the speed of light. Test it yourself:

https://www.cloudping.info

For me, the highest was 310ms round trip to Singapore, so higher than your estimate but not too bad.

But this is completely beside the point. As far as I know, if you're using a CDN effectively (i.e. a large proportion of requests are hitting cache), it should be cheaper than having all requests hit your server, not more expensive. So even if you don't "need" a CDN, you might want one. This is orthogonal to the issue of bot traffic, which exists whether or not you use a CDN. If you want to use a CDN but don't mind the costs of bot traffic, you can configure CloudFlare to not show the CAPTCHAs, or use a different CDN.

Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by grishka on Friday May 14, 2021 @04:17PM (#27159237)
338 ms to Sydney is my worst. 234 ms to Singapore.

AWS does offer a CDN, right? Somehow they do it without captchas and without me ever noticing. So I'm somewhat right at cursing at cloudflare because it's the only one actually announcing its presence by actively disrupting your browsing.

Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by ehutch79 on Friday May 14, 2021 @05:48PM (#27160072)
Cloudfront, the aws cdn, is not equivalent to the part that's showing a captcha. Only when it would have hit your server do you see the captcha, because it's proxying it, not serving cached results.
Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by bayindirh on Friday May 14, 2021 @04:00PM (#27159045)
> Well, it does say 130 ms in here.

If you have a fiber backed, all-switched network with no routing, buffers, congestions, or detours, you may get that value, if you're lucky.

Pinging tty.sdf.org which is a direct access shell service in USA from somewhere between Europe and Asia, from an academic network backbone roundtrips in ~190ms. I'm traversing a little less than half a globe with the whole journey. In your terms, it should be around ~60ms, but it's not.

> If you mean REST API requests, the kind that trigger some code to dynamically generate a response, how would a CDN solution like cloudflare help?

By using Cloudflare workers, so your code is also distributed around the globe?

> CDNs only really work for cacheable static content, don't they? I mean it's in the name.

JS files are also static content. Unless you don't use code distribution like Cloudflare workers, using a simple CDN can cache 90% of your site if not more. CSS, images, JS, HTML, you name it.

> A blog or a news website certainly doesn't need a CDN.

Actually, CDN is the most basic optimization for distributing heavy assets like videos and images, which news websites use way more than text. Why not use a CDN?

Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by grishka on Friday May 14, 2021 @04:12PM (#27159174)
> Pinging tty.sdf.org which is a direct access shell service in USA from somewhere between Europe and Asia, from an academic network backbone roundtrips in ~190ms.

Actually I get around 200 from Russia which is also "somewhere between Europe and Asia":

   round-trip min/avg/max/stddev = 196.504/197.581/199.833/1.360 ms
> By using Cloudflare workers, so your code is also distributed around the globe?

Great, let's give that company even more control. That's sure gonna end well.

> CSS, images, JS, HTML, you name it.

It all gets loaded once and then cached in the browser. The initial load takes long regardless of whether there's a CDN. Oh, and many websites also use stuff from like 10 different domains, which doesn't help this either.

And, it doesn't matter whether a JS file loads in 50 ms or 300 ms, if it then takes 5 seconds to parse and start running.

> Actually, CDN is the most basic optimization for distributing heavy assets like videos and images, which news websites use way more than text. Why not use a CDN?

So put them on a separate domain and serve that from a CDN if you really care whether that stock photo no one notices loads in 500 ms instead of 2000. That doesn't explain much why anyone would put their main domain behind cloudflare.

Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by bayindirh on Friday May 14, 2021 @05:07PM (#27159697)
> Great, let's give that company even more control. That's sure gonna end well.

We have enough evil companies who invade our lives through the platform develop. Cloudflare is not one of them. Using them is voluntary (by the service providers), and I think they're one of the more useful companies around.

BTW, I'm not a web developer or Cloudflare employee. I have no skin in this stuff, however they build some cool stuff inside the Linux kernel, which is interesting from my PoV.

> It all gets loaded once and then cached in the browser.

Then cleared and/or invalidated by the user or browser's logic itself due to plethora of reasons.

> The initial load takes long regardless of whether there's a CDN.

Actually, no. A reasonably fast internet connection (>12 Mbps we can say) can load a lot of things very very fast. The biggest overhead is DNS, even with CDNs. With a good local, network-wide DNSMasq installation, if the server is close, I can load big sites almost instantly.

> And, it doesn't matter whether a JS file loads in 50 ms or 300 ms, if it then takes 5 seconds to parse and start running.

I think 5 seconds is long time for even the old Netscape Navigator's JS parser. You need to run something akin skynet to parse the JS file for straight 5 seconds. How's that even possible?

> So put them on a separate domain and serve that from a CDN if you really care whether that stock photo no one notices loads in 500 ms instead of 2000.

I don't know you, but world news generally contains live/new footage or fresh photos from the ground, not some stock photos, also we humans are visual animals. Many people want to see the images first, read the text later.

> That doesn't explain much why anyone would put their main domain behind cloudflare.

Load balancing, DDoS protection, CDN, workers, Bot/Scraping protection, cost reduction, rate limiting, you name it. Even my DSL router implements some of the protections, to my surprise.

Internet is not the same beast now when compared to 90s/00s. I miss the simpler times, but alas.

Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by joshuamorton on Friday May 14, 2021 @03:50PM (#27158956)
Of course, light doesn't travel at vacuum speed in fiber, it travels a bit slower, but it also bounces around the cable, so ends up traveling a significantly longer distance. Multiply by around 1.5 for more real world numbers (copper is similar), just measuring raw distance.

And switching adds significant delay, especially when you get out to the edge.

> If you mean REST API requests, the kind that trigger some code to dynamically generate a response, how would a CDN solution like cloudflare help? The request still needs to get to the server and the response still needs to come back, all the way, because that's where that code runs. CDNs only really work for cacheable static content, don't they? I mean it's in the name.

For a simple example, imagine assets that are dynamically loaded based on feature detection in JS. All of the assets (js included) can be cached on the cdn.

Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by nijave on Friday May 14, 2021 @09:56PM (#27161587)
Most end users are not in a position to control the path their packets take. Their ISP could route their packets around the world 6 times over if they can save a nickel doing it
Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by ehutch79 on Friday May 14, 2021 @12:23PM (#27156029)
I don't think you understand why that captcha is there in the first place then.

Cloudflare prevents a bunch of crap that site operators just don't want to deal with. Especially for smaller sites that are run by one person. Dealing with a wordpress site getting hacked because you missed an update by a day, or a bulletin bored getting swarmed with bots, or some asshat ddos'ing your site because you banned them. Suddenly that site just isn't worth running.

Complaining that about a thing that prevents that headache because it's a minor inconvenience to you is so self centered it boggles the mind.

Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by grishka on Friday May 14, 2021 @12:32PM (#27156182)
Yeah, so centralizing the entire internet around a black box that sees all your traffic in cleartext is clearly the right solution. /s

> Dealing with a wordpress site getting hacked because you missed an update by a day

Maybe don't use something this vulnerable then and rely on a third party to protect you from exploits.

> or a bulletin bored getting swarmed with bots

Maybe require email verification and/or a captcha when signing up or posting. Don't punish people for passive actions.

Somehow, there are many forums that aren't behind cloudflare, yet there are no spam bots.

> or some asshat ddos'ing your site because you banned them

Sure ddos is such an everyday occurrence?

I just don't understand. I run a personal website. There's literally nothing to "deal" with. I set it all up once and it works. I only have to pay for the server and for the domains on time.

Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by ehutch79 on Friday May 14, 2021 @01:00PM (#27156583)
Monocultures are always bad, but I don't see any alternative services with this level of ease of use.

You're definitely overestimating the technical expertise/available time of a lot small time admins out there.

You don't see bots and spam on those forums either because they are actually using cloudflare, and you're just not seeing the captcha, or because in the backend they're feeding all their posts through akismet (in plain text). I don't think you're considering how many services see your posts, even when you don't trip a captcha.

email accounts are trivial to sign up for, especially for bots. I always recommend charging $1 (or local equivalent) for an account, that's a lot harder to fake.

My point in all this is that bitching that site is using cloudflare to not have to deal with crap, is a self centered view.

Saying "well it never happened to me, so it must never happen" is similarly self absorbed.

Maybe consider that your experience is not everyones experience

Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by NaturalPhallacy on Friday May 14, 2021 @10:33PM (#27161786)
>prevents a bunch of crap that site operators just don't want to deal with

>I don't see any alternative services with this level of ease of use.

Both of these boil down to laziness, IMHO. And for how awful they are for half the internet, that's not okay to me. Not as a user or as a developer.

When a user requests a site they expect to get the site. When you utterly disregard their utterly reasonable expectation and force them to train someone's ML algorithm for free for a minute or two you utterly destroy the user experience.

If that's my experience as a user, your entire site gets an instant 1/10 rating from me. I'll likely leave instantly and never return.

Re:Cloudflare’s CAPTCHA replacement with FIDO2/WebAuthn is a... by jjav on Friday May 14, 2021 @05:10PM (#27159747)
> My point in all this is that bitching that site is using cloudflare to not have to deal with crap, is a self centered view.

Who is serving whom here?

If a business thinks it's ok to impose cloudflare inconvenience on me, the customer, for the priviledge of giving them my money, who is self centered here?

The simple answer is I'll close the tab and go buy it from a competitor. I'm not playing captcha games to buy something.