News for hackers. Stuff that matters.
Re:Show HN: Nginx Image with HTTP/3 (QUIC), TLS1.3 with 0-RT... by regecks on Sunday October 20, 2019 @08:10PM (#21308250)
Well, "ssl_early_data" is opt-in. If you enable it on a virtualhost, then you also need to look at the "Early-Data" request header in your backend and make a decision there. e.g. process GET requests, otherwise send HTTP 425 Too Early.

It does seem a bit unsafe. An administrator might opt-in because they copy-pasted it from a tutorial, and not understand or pay attention to the second part.

Re:Show HN: Nginx Image with HTTP/3 (QUIC), TLS1.3 with 0-RT... by vasilia on Sunday October 20, 2019 @09:17PM (#21308584)
I think it will be better to fully disable early data for people without full control of DC's network equipment. I don't know why Cloudflare made a decision about using headers and Too Early response. They have full control of their POPs. It will be better to measure RTT and use UDP based KV storage with tickets only for clients with high RTT. So for clients with RTT higher then access to KV storage it will be better to issue tickets, for other clients it will be better to drop early data and use full handshake. Currently, I'm working on a project with the same idea.
Re:Show HN: Nginx Image with HTTP/3 (QUIC), TLS1.3 with 0-RT... by tialaramex on Sunday October 20, 2019 @09:50PM (#21308751)
> It will be better to measure RTT

To measure RTT you need to perform a round trip. Hence the name. But the _whole point_ of this feature is to avoid incurring the cost of an extra round trip if possible.

Re:Show HN: Nginx Image with HTTP/3 (QUIC), TLS1.3 with 0-RT... by vasilia on Sunday October 20, 2019 @10:23PM (#21308882)
There is no need to send extra data to measure RTT. On the TCP handshake SYN/ACK you already know RTT. Linux kernel provides this info in tcp_info data structure.