Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFir1-0007dB-42 for pgsql-hackers@arkaria.postgresql.org; Tue, 30 May 2017 15:14:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dFir0-0003OA-Kt for pgsql-hackers@arkaria.postgresql.org; Tue, 30 May 2017 15:14:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dFiqz-0003NP-Ox; Tue, 30 May 2017 15:14:37 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFiqw-0002PN-3V; Tue, 30 May 2017 15:14:37 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 0570B5F797; Tue, 30 May 2017 11:14:32 -0400 (EDT) Date: Tue, 30 May 2017 11:14:32 -0400 From: Stephen Frost To: Tom Lane Cc: Robert Haas , =?iso-8859-1?Q?=C1lvaro_Hern=E1ndez?= Tortosa , "pgsql-hackers@postgresql.org" , PostgreSQL JDBC List Subject: Re: [JDBC] Channel binding support for SCRAM-SHA-256 Message-ID: <20170530151432.GW3151@tamriel.snowman.net> References: <4e65d7cc-63bd-9515-83d6-85b03dbb4f21@8kdata.com> <13406.1496155822@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="gSZ3AO3qO7fMcp+a" Content-Disposition: inline In-Reply-To: <13406.1496155822@sss.pgh.pa.us> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-117-generic (x86_64) X-Uptime: 10:53:04 up 21 days, 15:25, 8 users, load average: 0.29, 0.18, 0.15 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org --gSZ3AO3qO7fMcp+a Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Tom, all, * Tom Lane (tgl@sss.pgh.pa.us) wrote: > Robert Haas writes: > > On Sat, May 27, 2017 at 5:59 PM, =C1lvaro Hern=E1ndez Tortosa > > wrote: > >> - tls-unique, as you mentioned, uses two undocumented APIs. This raise= s a > >> small flag about the stability and future of those APIs. >=20 > > It seems to me that the question is not just whether those APIs will > > be available in future versions of OpenSSL, but whether they will be > > available in every current and future version of every SSL > > implementation that we may wish to use in core or that any client may > > wish to use. We've talked before about being able to use the Windows > > native SSL implementation rather than OpenSSL and it seems that there > > would be significant advantages in having that capability. >=20 > Another thing of the same sort that should be on our radar is making > use of Apple's TLS code on macOS. The handwriting on the wall is > unmistakable that they intend to stop shipping OpenSSL before long, > and I do not think we really want to be in a position of having to > bundle OpenSSL into our distribution on macOS. >=20 > I'm not volunteering to do that, mind you. But +1 for not tying new > features to any single TLS implementation. Work has been done in that area already, as well as for LibNSS support. I've not had a chance to closely look over the proposed approach here, but generally speaking, we need to be looking for a standard way to generate and transmit the channel binding information across the wire. The specific APIs are, certainly, going to be different between different TLS implementations and I don't believe we need to be particularly concerned with that (or if they change in the future), as long as we abstract those APIs. Perhaps there's some question as to just how to abstract them, but I'm at least a bit less concerned with that as I expect we'll be able to adjust those abstraction layers later (presuming they aren't exposed, which I wouldn't expect them to be). I skimmed over RFC5929, which looks to be the correct RFC when it comes to channel binding with TLS. Hopefully the various TLS implementations work in a similar manner, following that RFC (or whichever is relevant). If that wasn't the case then, for example, it wouldn't be possible to do channel binding with a LibNSS client and an OpenSSL server or with other combinations and I find that rather hard to believe. Thanks! Stephen --gSZ3AO3qO7fMcp+a Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJZLYxYAAoJEO1sijiDR2RV/UEP/3UUMnhNMAYUu8J8PHrAeNiU GYpXc/ruCSAa9Q6eDl68jiEvacd/zURYtD9OVGTo2MXkO9a5w2jy+U+x+PXx48zX IL/oTm/tt2oKFDYLzwURxWfaksZGgl7yipmdBNX9+GL8QOreEO1TFoNJMcDa+z7a P7sqE/zgOHic4YN0mKD+2b/nqwwfJ6YuMcxLy/lYSJPiPabXJCa3E8hIVF07dOzZ 00SJqozLH21SiicMET+LrbBBZC06tGRhcSTG5Qn6cVesYpXtOLk/ixmwgYlABbQm M9zL4hqq77Nczvf3r35veH+q8gTQV+YfaYVqj/1mDduw740Gnj787HSqs+W557tw ShtXW8h7LAIvLLyfGtAzThJrEXUzoX9MMRQitQ1vPUM4lH4AlBe7f60As4iG/arp 4rm4DqlLTCbBCERGDXmJhKJ/mrpyAA22j1xjmTWeK/U/MQLcxgu/2+23wounKn2Z ydMeJFIk7yn1hiznrCkPqfKmDlMmru3R5woN/PJOwsPid0Ne+3W3KoFQaMVExyfs DMOvQ3iyg0uxRdZKIWdB6ZMCbA6jrAiji8NvRkAMNMNNip4S3QK/AE6KMQKd9DHh HX0h/zwnak5ZqGcTdags0SH7TBRs+OCDr4KaaHvdbSpCGBy6uo6Tl+Dled/Xrk17 nad2rJZnAFXUGQs0GYsu =K9BM -----END PGP SIGNATURE----- --gSZ3AO3qO7fMcp+a--