Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dGSN9-0008OP-Lt for pgsql-jdbc@arkaria.postgresql.org; Thu, 01 Jun 2017 15:50:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dGSN8-0007oH-Vm for pgsql-jdbc@arkaria.postgresql.org; Thu, 01 Jun 2017 15:50:51 +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 1dGSN8-0007nb-CL; Thu, 01 Jun 2017 15:50:50 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dGSN1-0006W7-GQ; Thu, 01 Jun 2017 15:50:49 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id F0EB05F795; Thu, 1 Jun 2017 11:50:42 -0400 (EDT) Date: Thu, 1 Jun 2017 11:50:42 -0400 From: Stephen Frost To: Robert Haas Cc: Michael Paquier , Tom Lane , =?iso-8859-1?Q?=C1lvaro_Hern=E1ndez?= Tortosa , "pgsql-hackers@postgresql.org" , PostgreSQL JDBC List Subject: Re: [HACKERS] Channel binding support for SCRAM-SHA-256 Message-ID: <20170601155042.GG3151@tamriel.snowman.net> References: <13406.1496155822@sss.pgh.pa.us> <20170530151432.GW3151@tamriel.snowman.net> <20170530170036.GZ3151@tamriel.snowman.net> <20170531034941.GH3151@tamriel.snowman.net> <20170531235922.GR3151@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="PU4ip18ulvdgAzHl" Content-Disposition: inline In-Reply-To: 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: 11:40:02 up 23 days, 16:12, 12 users, load average: 0.11, 0.18, 0.18 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-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org --PU4ip18ulvdgAzHl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Robert, * Robert Haas (robertmhaas@gmail.com) wrote: > On Wed, May 31, 2017 at 7:59 PM, Stephen Frost wrote: > > If your comments regarding the requirement that we have interoperability > > testing of this feature before accepting it were intended to mean that > > we need to make sure that the JDBC driver is able to work with the > > chosen solution (or, perhaps, that we support multuple options, one of > > which works with the JDBC changes), and that we review the other TLS > > libraries with the goal of making sure that what we agree on in core > > should work with those also, then that's great and exactly what I'd like > > to see also. >=20 > OK, great. That's what I mean (mostly - see below). Glad to hear it. > > If your comments regarding the requirement that we have interoperability > > testing of this feature before accepting it were intended to mean that > > we must have a complete alternative TLS solution, while that would > > actually play a great deal to a goal I've had for a while to have PG > > support multiple TLS implementations (LibNSS being top-of-mind, at least > > for me, as I've mentioned a couple times), I can't agree that we should > > require that before accepting channel binding as a feature. To do so > > would be akin to requiring that we support multiple TLS implementations > > before we agreed to support client-side certificates, in my opinion. >=20 > I don't think that we need to have a committed patch allowing multiple > SSL implementations before we accept a patch for channel binding, but > I think it might be a good idea for someone to hack either libpq or > the server enough to make it work with some other SSL implementation > (Windows SSL would probably be the best candidate) and test that what > we think will work for channel binding actually does work. It > wouldn't need to be a committable patch, but it should be enough to > make a successful connection in the laboratory. Now, there might also > be other ways besides that of testing that interoperability is > possible, so don't take me as being of the view that someone has to > necessarily do exactly that thing that I just said. But I do think > that we probably should do more than say "hey, we've got this > undocumented SSL API, and this other Windows API, and it looks like > they do about the same thing, so we're good". There's sometimes a big > difference between what sounds like it should work on paper and what > actually does work. I certainly wouldn't object to someone working on this, but I feel like it's a good deal more work than perhaps you're realizing (and I tend to think trying to use the Windows SSL implementation would increase the level of effort, not minimize it). Perhaps it wouldn't be too bad to write a one-off piece of code which just connects and then returns the channel binding information on each side and then one could hand-check that what's returned matches what it's supposed to based on the RFC, but if it doesn't, then what? In the specific case we're talking about, there's two approaches in the RFC and it seems like we should support both because at least our current JDBC implementation only works with one, and ideally we can allow for that to be extended to other methods, but I wouldn't want to implement a method that only works on Windows SSL because that implementation, for whatever reason, doesn't follow either of the methods available in the RFC. Thanks! Stephen --PU4ip18ulvdgAzHl Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJZMDfSAAoJEO1sijiDR2RVGFcP/2/xoJ90PrsU0QyqMvvvBtEd AjlxOoRxpvwRoiTiK1iLYuQdqam5OjniraA8fc30M36qg5U56H0IhudKSiCqUAZ1 f1uBKxFh07wV7yY0+Ggt52tGgRA5WqiqtoMsn1ySoB9/PJPNmCPys7RrGfhwWNDb MZiKpD/T19xsdW6py0VKQH+b5gSlcyeo5Kb1nwPVg1HBKs/1VX/Rdz0LU3ZR9vxf EHpqFpoF8bNo5mp9bZTD6jpaVU5v/eqNYCqgBvk2yT5L2vGjIWvrkykWLo0WaktH tWaL20RRuT0ILKAGs0fI5vpK3K2IlqxRfflhypcw0ajOcGux5DD23eZC+EhzhFOM yltZsNMJc+cMDAqtLbGumRS2MMtpWmYM/P/ebAA8tjboNUiQrhRs0VtD5mB43VdL QUcHW7B+0gkBzFPUcEvB8qP73RMJJQi08yWjnkZ/g7HFkNkMxWWI2Qb6AJW6lcqA 8LSbxSgJlLPxjh2Fu+dh5b8m9tBaWJ9m+pizvWqKI+JbrQ5QH4KfMJB/7NpQ5bam Amo/7VRljSuS5P8lIy13oclpMSc78cOnJk+JI0AMxFwo4O4sdHAki4AaABK8jsgm Wgurxy1X9ZXv4PeBaGQmwtCx4MipVKeRXwlO++sgu1uLUEDGgP7ReZlbmOe7joDg yOwXmPPnshEnJjUUsksB =jgXU -----END PGP SIGNATURE----- --PU4ip18ulvdgAzHl--