Re: Introducing SNI in TLS handshake for SSL connections - Mailing list pgsql-hackers

From Andreas Karlsson
Subject Re: Introducing SNI in TLS handshake for SSL connections
Date
Msg-id 204720ce-a817-0ab3-3c51-5c950960b95c@proxel.se
Whole thread Raw
In response to Re: Introducing SNI in TLS handshake for SSL connections  (Pablo Iranzo Gómez <Pablo.Iranzo@redhat.com>)
Responses Re: Introducing SNI in TLS handshake for SSL connections
Re: Introducing SNI in TLS handshake for SSL connections
List pgsql-hackers
On 12/11/18 3:52 PM, Pablo Iranzo Gómez wrote:
> I came to this old thread while trying to figure out on how to setup 
> postgres replication behind OpenShift/Kubernetes behind a route (which 
> only forwards 80 or 443 traffic), but could work if SNI is supported on 
> the client using it.

Hm ... while hacking at a patch for this I gave your specific problem 
some more thought.

I am not familiar with OpenShift or Kubernetes but I want you to be 
aware of that whatever proxy you are going to use will still need to be 
aware of, at least a subset of, the PostgreSQL protocol, since similar 
to SMTP's STARTTLS command the PostgreSQL client will start out using 
the plain text PostgreSQL protocol and then request the server to switch 
over to SSL[1]. So it would be necessary to add support for this to 
whatever proxy you intend to use.

Do you know if adding such custom protocol support is easy to do to the 
proxies you refer to? And do you have any links to documentation for 
these solutions?

Notes

1. https://www.postgresql.org/docs/11/protocol-flow.html#id-1.10.5.7.11

Andreas


pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Add timeline to partial WAL segments
Next
From: Hao Wu
Date:
Subject: Where to save data used by extension ?