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 1pe2lo-0003JQ-JV for pgsql-hackers@arkaria.postgresql.org; Sun, 19 Mar 2023 23:49:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pe2lm-0002rz-U1 for pgsql-hackers@arkaria.postgresql.org; Sun, 19 Mar 2023 23:48:58 +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 1pe2lm-0002rk-KY for pgsql-hackers@lists.postgresql.org; Sun, 19 Mar 2023 23:48:58 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pe2lk-0002pR-4a for pgsql-hackers@lists.postgresql.org; Sun, 19 Mar 2023 23:48:57 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id E1E6132006F5; Sun, 19 Mar 2023 19:48:54 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 19 Mar 2023 19:48:55 -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=1679269734; x=1679356134; bh=kz nqG7XlOqcWIVErMTG10NIguekzSsrMa8wNFoK1FcQ=; b=syrlvDcmjrDm1PUiQr RVf1K/M2XyB2YgjwnFq4OuEuOQh1clgzIXfU81ZUg+omMkXBjw+SXp4iXuZ5ZflW ysPD/iH/jVLtaYUH4piDKzkRJgZiSudqDpDahvOgjr1I9aLImFFUY/uu91+P1WpW 8KcCU3EeouCyUYhknD51zjoAhyaWARWk0rhHnzLjnP9B365gCm98TVUTNF00czeq 38SRq+dP3T+64fklvSM9mY/KzCF5mhnqZli10qgilRahZm2QczrKSLgocNtmP2+P jiDrfyKpDg6RpCthxfljbyQJe0rdGIjDusw623sjM1a88LYmGa5SfTbXo/n97Fu+ WiXQ== 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=1679269734; x=1679356134; bh=kznqG7XlOqcWI VErMTG10NIguekzSsrMa8wNFoK1FcQ=; b=d3+hbidlPsWO1g3OO5k23RWdLPVRh rMegJpregoz0GWdFVvxbHbwHYSY4svaoTcq2NX1sgFdCa+TUMu1NWfBXF5SpGCnY Fb6wYlDCFoec1cYgoKZUeXGde8KKOB+IUw0/dfjfRba6/hENxUw8FKPJYho2gX3t 6tXHN1y/rzQEtuyUadO3QKvu3iPMMKGvPqvu2vn7nvxaLS14w6S9erNWOPM3KXyS PCJrOeHhqrJra2Rc9GNyIPOngTrtlGHFmTyJYMyiSjWxRNEH8k0pfFL0tIcHpBEz mqnW+Jm1RgXEFbczkvlnWJ4cBjSFsnzi+LlnIYmc3OGUZrRIkD+SSEl6Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdefjedgudeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtdorredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepffduleehgefhkeefgfeftdfh kedutddvhfdukeeggeehieekffelhfelkeehteefnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 19 Mar 2023 19:48:53 -0400 (EDT) Date: Mon, 20 Mar 2023 08:48:50 +0900 From: Michael Paquier To: Tom Lane Cc: Postgres hackers Subject: Re: Remove AUTH_REQ_KRB4 and AUTH_REQ_KRB5 in libpq code Message-ID: References: <806567.1679266408@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="YH16yRrHmhzenPul" Content-Disposition: inline In-Reply-To: <806567.1679266408@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --YH16yRrHmhzenPul Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Mar 19, 2023 at 06:53:28PM -0400, Tom Lane wrote: > 9.2 is still within our "supported old versions" window, so it's > at least plausible that somebody would hit this for KRB5. Still, > the net effect would be that they'd get "authentication method 2 > not supported" instead of "Kerberos 5 authentication not supported". > I lean (weakly) to the idea that it's no longer worth the translation > maintenance effort to keep the special message. >=20 > A compromise could be to drop KRB4 but keep the KRB5 case for > awhile yet. Hmm. I think that I would still drop both of them at the end, even in v16 but I won't fight hard on that, either. The only difference is the verbosity of the error string generated, and there is still a trace of what the code numbers were in pqcomm.h. > One other thought is that I don't really like these comments > implying that recycling these AUTH_REQ codes might be a good > thing to do: >=20 > +/* 1 is available. It was used for Kerberos V4, not supported any more = */ >=20 > I think we'd be better off treating them as permanently retired. > It's not like there's any shortage of code space to worry about. > More, there might be other implementations of our wire protocol > that still have support for these codes, so that re-using them > could cause compatibility issues. So maybe write "reserved" > instead of "available"? Okay, fine by me. -- Michael --YH16yRrHmhzenPul Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmQXn2IACgkQnvQgOdby QH21EQ//TzEWbSy1CWbLliKOHDuzDsX57xMeau7G/q6lAKLvCm+ZtJ6oK+ulH8v6 nVi/3y/yp3sTMdXiWH8JxIi3I/TXG35eJ5Vj8vT7FkOS72gwxUfVIBV9XIq2GWBX E2t8gDH0Bn4trn70Fws5OcHnzBQvLc2uF9wa3NJaluCxdI2kNSYxw7b3ZugEUetk D4saYKe0tM3ieo1mULFGfPIFygbkJ9+uuZ2mismPvioqvHV7EGCatKk2DInoKUOe MbKNgDz3ZZDXx2qnC63qnI/6QTHvMOFk5bzeqhgfZnL9GGFZjqBsqNbVSIAjyNbr gApVQ6oxKuJJhYqsxey7SmiQucgnE7KARXxSQEb5LSxHI9jtlmQvqZ0uo7mChn+z noOK79AjT5p22beK3JB30ZS1e8bkmYXyw2KXwKXnMID1Q2P8rYPqymbBf33LgPPD ARC8xReULILB+pYU/MYYwe7X/0efX95DI6lOGpCa4X8GmwtjR/Ru8vrNFVCOKNpx itaRMapdbrsjCIRfUXjbFDpvHi/p22H3LyEeKY/zSCTcWHIBRysuSnQL8qnPju8e 67JVgIPKoZUgYxYnfMNoQ0swDJhXBGsOGeaFp+sXLfn/YuB+aE0GmE9GSj+wbK7g /xb0Mtp4k16p34RPR1Ukegoy5vrAwXbw1Yituxgg1cqB4FOAvCs= =Gxos -----END PGP SIGNATURE----- --YH16yRrHmhzenPul--