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 1pfZof-0004Ur-RM for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Mar 2023 05:18:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pfZoe-0004oe-NH for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Mar 2023 05:18:16 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pfZod-0004oT-2L for pgsql-hackers@lists.postgresql.org; Fri, 24 Mar 2023 05:18:16 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pfZoa-0007gf-49 for pgsql-hackers@postgresql.org; Fri, 24 Mar 2023 05:18:14 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 290E032009DF; Fri, 24 Mar 2023 01:18:09 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 24 Mar 2023 01:18:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1679635088; x=1679721488; bh=gY x0IV7Op76F0rg4yXK9Z2k9UeAys46CsZkYuxWae1A=; b=btL/EWp4PDSwV969EQ /xzPDzureeAYMTeGbTXOgC4vIWwBSCEkZBLENo3FrGfEvKtycnaW6WvpQvD+d6Ol Hvi3HYlx6FI4ofv17TveuFrlPHothdJ6sYSEjymUD14DFXunbfS/Oqg+1KccgI2M jVp5FYKU6Xnmg5kaFylDf4a2qoZb72Jn36izzRI5XNNrYqjb/eC4LB0SNqRm7sun yHuFXjqhU+DJtGHG+0iXlm8OaznfyxfpGuQpXJpljCb8XGqCoQM1h5e6vsXrYmXY bpPRCSuqvTQkgeT9sS2Bmf6oXpgakfAwwItV92QNZVPZs1lY6QtWVOcSB1U1s058 F5Nw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1679635088; x=1679721488; bh=gYx0IV7Op76F0 rg4yXK9Z2k9UeAys46CsZkYuxWae1A=; b=Mjb8nBLXvZjs0n+sB6BbzbH83wzyJ XWwWUFAiiJ42jGHb5J05xk8hCrrlUR4V1yniJiAhm90cCN8j8VGWzafTOpLZ8hvQ Pdr/fAhfhDSjsFWO3TsVVYRZ0mEinFRMB4V7zyFstFCz1qODTBOQWWnbskhHq8DK P3mi67IiGaqWmYFngaUzjAGX+ybfPuA6t8uZgqo4PYkFRCR/09EWMIm2INhayp3K WdWK6G4JpXVVv8/cXqaqo2P8lnGiyawjWDiT8qbNVsevTwClWZUKoPrEhpRdvgb0 Kw1VnJrcC7Y4r+QF+CkhSZnjxkC0AmI18PopdzXHkzr4ZfM6ieZavMpyw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdeghedgkedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tdejnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepveetjefgjeevgedukeehieeu ieeuieevueeiudegheevuefggfduueelgeelieetnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 24 Mar 2023 01:18:06 -0400 (EDT) Date: Fri, 24 Mar 2023 14:18:02 +0900 From: Michael Paquier To: Jacob Champion Cc: "pgsql-hackers@postgresql.org" , Aleksander Alekseev , Peter Eisentraut , "David G. Johnston" Subject: Re: [PoC] Let libpq reject unexpected authentication requests Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HUU1STFRXgROOcNi" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --HUU1STFRXgROOcNi Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 23, 2023 at 03:40:55PM -0700, Jacob Champion wrote: > On Tue, Mar 21, 2023 at 11:01=E2=80=AFPM Michael Paquier wrote: >> contrib/sslinfo/ has ssl_client_cert_present(), that we could use in >> the tests to make sure that the client has actually sent a >> certificate? How about adding some of these tests to 003_sslinfo.pl >> for the "allow" and "require" cases? >=20 > Added; see what you think. That's a pretty good test design, covering all 4 cases. Nice. >> freePGconn() is missing a free(sslcertmode). >=20 > Argh, I keep forgetting that. Fixed, thanks! I have spent a couple of hours looking at the whole again today, testing that with OpenSSL to make sure that everything was OK. Apart =66rom a few tweaks, that seemed pretty good. So, applied. -- Michael --HUU1STFRXgROOcNi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmQdMooACgkQnvQgOdby QH3Dkg//QFSa6nr2GAhj1AsYXsJW5ZdBQCSk43tWoQjq556DQLvsppo6jyTEczik 8WLypz02yDPSlU9golHvobgAY5Ceqsv3fahmNANEGX5MpzOLctP539VWQ7bY0DPu bziSgcdDZOlCNftQMHCDCdsd4FeyuVh61Dyg/M86s0oN2RfdlIlSvZRorjU6Ghew lwsahY+rKNETQXWdkVGcvZE46YwSAhZKTwb4UtbqLRdYisbB8A2WaU9rqN13+UJ3 NsYGnJkKet5I59TbXkhly8NGZiEyy4M9c4IMnwIBusjJyBywJ71ghbYMcJWA+3ma nFAcomdlPWVdlBLkyujA2aOSmKBwywNOrTvOg8qnQpxKlprjF48A83Khj/gStMRr ucDDOR0/TK+rGI2a3MOprYfdRCtdFCG1eKQfRBpwJZ7nYKX8usZR85SoGslpxr32 2tjxFr2dq4JWvJsC1KAEPscSPcx77tocEMHxJ9Tz33UT1h6HFCtDUm5zlEqquY3U r+/jmYN0pIQj2t3f+iT5yJ0/8WdHdDzpi3IIHp28dr+OPNA18KycggDO/EwQD37S 3cWSRiFkmz+JXwFxy2GJBM2Xp0cf138B8FkiTSjjgXaAD6cZiIzNM/0xrYLfzd6x 7b4VG3r0mM6xdVhtvd7vQtHOPLUoz7KkWnk/+19kSbWANs/bZXY= =8ZGa -----END PGP SIGNATURE----- --HUU1STFRXgROOcNi--