Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l5f37-0001XV-P0 for pgsql-hackers@arkaria.postgresql.org; Sat, 30 Jan 2021 01:27:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l5f36-0003lb-NK for pgsql-hackers@arkaria.postgresql.org; Sat, 30 Jan 2021 01:27:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l5f35-0003lU-Ch for pgsql-hackers@lists.postgresql.org; Sat, 30 Jan 2021 01:27:40 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l5f32-0002Ss-UZ for pgsql-hackers@lists.postgresql.org; Sat, 30 Jan 2021 01:27:39 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id B77435C00DE; Fri, 29 Jan 2021 20:27:34 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 29 Jan 2021 20:27:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=pAQgXB+rqC0sRYEZrJL7qecU7I6 W6qsdMZpFlWDDb7E=; b=sc2b9oNk2tAdyqMurLmks63wPjdzREQvJ3oB7bAUvJd RNfd5ezd7+86eNkNSInyMkf/xiRwD+XrpPsilbL2QHUVp0Ps6kThH11MTIcnsdqD d3mBaM5XfeY85QZUunNhkWXuy3JevCnw0vPrROh+0Bp2asOwQOh/3TNeGuDoVQ6i Bbr+NsXSTRdH6PJ9tz/SZ5FyVdMypWgm5NrXMdwzCcKFfGuK8ihVr6lInmzw/EmY +emx7PbStGEddk8Krb4iClUqnzqorITxtHANf5aHHH+BwPfbaxx8FB7HJiubUtVn jx1YTgFR7WuYB/Km7wgjTKooifYLicJxvbe0dP4paMA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=pAQgXB +rqC0sRYEZrJL7qecU7I6W6qsdMZpFlWDDb7E=; b=ChHx7+jPa+lJmrYlaZx3tm HcBWptyr87qFMERea7l5VrGZV99NfvMnNdwDRJn+uK+DP7s0+VFH+1dWH96jm0vH zktpPoICgq3apE1M4owz9o+7/gtxvnn8jEQ89le++hmAbgmzmiDf/2qkYeSirQd0 fhmqS+nIy/rUVSrJeE8/UaQn+ePdz4T3W05wZoA1kIcWcaCi7tvYAnmfbRYVKDUU Q5bPrEk48buI4b6TQwz5FMO4eDbnqMTW/6xMRsbqaaXNiEtpUmo187ZXhkfOyVpn snkFSAZB4zYPyL+YwqlUCMCbBpuWfPRbB9tBHJbz+9nyyouXr0YjH46/+339yZPQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeefgdeffecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepvdegudeuhfdtueeltedtveejheeh ieevueeigeelteegleejleeiueeiheegvefhnecukfhppeduudekrddvgedurddvgeelrd duledvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhep mhhitghhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Received: from paquier.xyz (mp76f1f9c0.ap.nuro.jp [118.241.249.192]) by mail.messagingengine.com (Postfix) with ESMTPA id 4BC011080057; Fri, 29 Jan 2021 20:27:31 -0500 (EST) Date: Sat, 30 Jan 2021 10:27:22 +0900 From: Michael Paquier To: Daniel Gustafsson Cc: Jacob Champion , "hlinnaka@iki.fi" , "pgsql-hackers@lists.postgresql.org" , "andrew.dunstan@2ndquadrant.com" , "thomas.munro@gmail.com" , "sfrost@snowman.net" , "andres@anarazel.de" Subject: Re: Support for NSS as a libpq TLS backend Message-ID: References: <8D7F95DB-8F8A-4300-BFDA-656FBAB30FE2@yesql.se> <14c55cc3114a9896a6c5fc16230a60fcef6c4819.camel@vmware.com> <51C8D20D-41D2-46EE-84BE-A672584C64E8@yesql.se> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ihmVudDgVv29N6Nb" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --ihmVudDgVv29N6Nb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Jan 29, 2021 at 02:13:30PM +0100, Daniel Gustafsson wrote: > I'm still not convinced that adding --with-ssl=openssl is worth it before the > rest of NSS goes in (and more importantly, *if* it goes in). > > On the one hand, we already have pluggable (for some value of) support for > adding TLS libraries, and adding --with-ssl is one more piece of that puzzle. > We could of course have endless --with-X options instead but as you say, > --with-uuid has set the tone here (and I believe that's good). On the other > hand, if we never add any other library than OpenSSL then it's just complexity > without benefit. IMO, one could say the same thing for any piece of refactoring we have done in the past to make the TLS/crypto code more modular. There is demand for being able to choose among multiple SSL libs at build time, and we are still in a phase where we evaluate the options at hand. This refactoring is just careful progress, and this is one step in this direction. The piece about refactoring the SSL tests is similar. > As mentioned elsewhere in the thread, the current v23 patchset has the > --with-ssl change as a separate commit to at least make it visual what it looks > like. The documentation changes are in the main NSS patch though since > documenting --with-ssl when there is only one possible value didn't seem to be > helpful to users whom are fully expected to use --with-openssl still. The documentation changes should be part of the patch introducing the switch IMO: a description of the new switch, as well as a paragraph about the old value being deprecated. That's done this way for UUID. -- Michael --ihmVudDgVv29N6Nb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmAUtfoACgkQnvQgOdby QH0B4g//THij3YCYJ5x/KP7oFlFd52hJLK0PUuwvHSjsCO61qXgZ7pTOwBVqk1b0 Vfino0Y4IUF9aj3A21Js5KLMJQLw+MSSRp5m5coVngFuivyZ82pDMw3k6gWevCJj LOBm46wavC91zKnkYG/LVno2QbYkqtEOaVrKqw9fQoo5whxfVRFpZVSAAqx6dnew KgQG2Rt539l8mWPNmWynsb/ZIQlOlfaTH2jmP2ELXNz+iU/JaZmvM2333pBOVK9L ISkcRV8QEGV8vW93eVRbJNk5apQLMMgrn2K4VzY8isE4kBCrtBnvBWwHuRaUh2Ur 8BTDEV6IahifkAHii/GYypxV7Ib06L2bBFA2pvI3wzqwbIdKDeugXSt1D1ouDiKd O2QO6oOpVEjCooxyds3juCxgObRWeC22+8kFe1PfLeLbvGwhBYdr/gsX5lqEhFAl zs8GUyGUIkSkjTgsO7yapYHIpez7ezU9wlmOvAD0SdvrnuQYjhn0RErs+EQX6azq HjBdOHZhItPrc2hHJ/Ie3BaGAImQRXETiYsbqu/uClN1M4QD2tuykdCikt8LSBk/ eYajn4Dr4mFbpC/C1yQFtrOxi68glG8OTudpgq/YD8wtf9E7K5aDw4kewHbtuUAg eSbJo6JiayiVb/IJp0C0g0k7bAwwGvtrD6oD9NJuauJSxyL+9QU= =79Yk -----END PGP SIGNATURE----- --ihmVudDgVv29N6Nb--