News for hackers. Stuff that matters.
Re:Nginx v1.11.5 Released by newman314 on Wednesday October 12, 2016 @01:23AM (#12690578)
Checked out ngx_stream_ssl_preread_module but not sure about the use case.

Anyone?

Re:Nginx v1.11.5 Released by rossy on Wednesday October 12, 2016 @02:01AM (#12690701)
I'm not totally sure, but it seems like it allows you to peek at the ClientHello message at the start of a TLS stream without performing a TLS handshake or otherwise interrupting the stream, so it can be forwarded with encryption to a backend server. For clients with Server Name Indication support (most of them,) the ClientHello message includes the unencrypted hostname of the server the client wants to connect to, so you could use it to route requests for different hosts to different internal servers in a virtual hosting/reverse proxy scenario (eg. requests for app1.com go to a different backend server than requests for app2.com) without Nginx having to decrypt the body of the requests at all.
Re:Nginx v1.11.5 Released by an_account_name on Wednesday October 12, 2016 @01:57AM (#12690688)
It exposes a variable with the TLS SNI extension value for you to do stuff with in config:

http://nginx.org/en/docs/stream/ngx_stream_ssl_preread_modul...

It's not clear from config whether you had to have already presented a valid certificate at that phase, though, or if it's just something you can use to check if it agrees with the Host header.

Re:Nginx v1.11.5 Released by kpcyrd on Wednesday October 12, 2016 @02:54AM (#12690865)
this is spot on

nginx is able to forward tcp streams without negotiating https or expecting http, from the docs it looks like this is for tcp streams only.

Re:Nginx v1.11.5 Released by jpgvm on Wednesday October 12, 2016 @04:57AM (#12691337)
It has to be for TCP only because it can't do L7 balancing without terminating TLS.
Re:Nginx v1.11.5 Released by brazzledazzle on Wednesday October 12, 2016 @02:01AM (#12690702)
You couldn't do this before? I thought it already had parity with haproxy in this respect.