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 1oQhz9-0005xK-PM for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Aug 2022 04:27:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oQhz8-0005q8-0E for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Aug 2022 04:27:22 +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 1oQhz7-0005px-NI for pgsql-hackers@lists.postgresql.org; Wed, 24 Aug 2022 04:27:21 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oQhz5-0004eg-Gl for pgsql-hackers@lists.postgresql.org; Wed, 24 Aug 2022 04:27:20 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 96FE25C0118; Wed, 24 Aug 2022 00:27:18 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 24 Aug 2022 00:27:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc: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=fm1; t=1661315238; x=1661401638; bh=016xlXwdn6 2BTPrD7tP1ee++ytNtomrovY7LyGgUi6g=; b=d9tlCUOjai0Qs2oDEYl9WHRx1g PLpOVEKS/qUtneU+o4BokzpAS91usdD7kOb02HBYfvqDDaSedKNtekGGMI/8/VT3 SffXW3voIKuqhamfWj3ilORsfQNG6QAb5q0TLF73YhyztouxENAM9yhurXSc2/NL OdiSegv/fT7tRc0dCNmj4757D3XKN+hoQpps8AG8/sfJ0h0h9KPL6MLsqqx55Hs8 FOfbZyuBzp3O15yxq8Knaa+CRD2wfAZHD4hEGzjDCpoqzU7rvRTIYALgyBiN7eXT 2mci2bx27PsH5ZBAHNInklfzUjsXK6sE6TVKVDN2kEKlx49hIu/8Kh0f5VHw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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= fm1; t=1661315238; x=1661401638; bh=016xlXwdn62BTPrD7tP1ee++ytNt omrovY7LyGgUi6g=; b=o9n42UhcCknPd7qBQh9521aMpWb+F0j5wQZQOdyXzkHM MY3O7JTiV85/b7m3AqAdOjCgRu+k2mBXKk2MKj0Eh4a+7wiVxV6Gu8cK5FGe82A1 oGJek8scvc2p+QwersK5J3ZADurZfbDOIgPi3OsVBf3JWilDyEugcc+okSEg+5+k 5aSGx6JrjdwbMT0zm7Dt1l+QRXoknHbukh+oOX2gBr7XBQwfvpB0Tw2rvDABk5VV N6HXbLjLArRrGO3Vdz/PkMlhlqPXsm93iWEgHM2F9ufJYt7oomvOz3Gw8W9iZ8nS 9Dk3sn6GQtPVe67XGyMnhmf7QdyMaIuTIM8abT3oPw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdejtddgkeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtdorredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepffduleehgefhkeefgfeftdfh kedutddvhfdukeeggeehieekffelhfelkeehteefnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 24 Aug 2022 00:27:16 -0400 (EDT) Date: Wed, 24 Aug 2022 13:27:12 +0900 From: Michael Paquier To: "Drouvot, Bertrand" Cc: Jacob Champion , Alvaro Herrera , Tom Lane , Joe Conway , PostgreSQL Hackers Subject: Re: SYSTEM_USER reserved word implementation Message-ID: References: <20220627173250.46lvecpvuunc7pf5@alvherre.pgsql> <24d638c7-16f6-afb9-c25c-6a29c169210e@amazon.com> <8fe1752a-2e3d-4ee8-656c-0caf5d860b0e@amazon.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="eXM3mBlLGYhbge0/" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --eXM3mBlLGYhbge0/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Aug 17, 2022 at 04:48:42PM +0200, Drouvot, Bertrand wrote: > That way one could test the SYSTEM_USER behavior without the need to have > kerberos enabled. I was looking at this patch and noticed that SYSTEM_USER returns a "name", meaning that the value would be automatically truncated at 63 characters. We shouldn't imply that as authn_ids can be longer than that, and this issue gets a bit worse once with the auth_method appended to the string. +if (!$use_unix_sockets) +{ + plan skip_all => + "authentication tests cannot run without Unix-domain sockets"; +} Are you sure that !$use_unix_sockets is safe here? Could we have platforms where we use our port's getpeereid() with $use_unix_sockets works? That would cause the test to fail with ENOSYS. Hmm. Without being able to rely on HAVE_GETPEEREID, we could check for the error generated when the fallback implementation does not work, and skip the rest of the test. -- Michael --eXM3mBlLGYhbge0/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmMFqKAACgkQnvQgOdby QH33aQ/9GUJP3NRb9BeuwPtGgNX+4mwwkWAjn/S2mXMtn3l2wL1IK0x2YiWzekln JndL+PY44odijQ6x5ZUXd6Ep/EB+GHepIV4Rl5Ek8M7E9N1Ak/kVtx//5n8qKofh kH3dpQqSON/uOYNP5GlZqfzxWv0WRf2m+HE8kS+oZUVevzLWfVZEcxuWSsNqUfwk KhfnSwURl/tPFztlLq3G5YmAxtBqinNpYQNPb1+V4Pw0yGDSxulSSmK5gxH1Z3q9 snS7JZHQh5vLgWbLe9FMkqBVaoMihizfNke+HoIn/hbT2uyXI1oKG1tJP7TT/FeM cRzH1Mqyn/nJsuCG2SENss5zG13sgXUZpRXzWaaYGqUSnyDnFg5pfMzukfwbID/M CZxrKMmydxyWjCNUpt8hM6/fVB9WeInIXzVguLYZmZXjyYdNL53u7jdPc/EMqMtB q8xJJ30xLW/wq2A21pvszDSCq4omniL9zGkGnGVpXk6Lp/EGaqgWks1MYTAzWPag R40YnUWaBMQhZd8Tm0M8C4g80DeWYPHqy/8odewLYn6ZL5s4SLdu9flB6iv1byzy J5POzNv/hR/f9z8Kmgj4z/SZHP3xvY8nn1+qAWA2b86bXHoKFAIdxO7wB4w8dVE4 LaY5V67Kx7XG8VzXGipM4WQO+qtsJNgi0y4YfoUoYJ5J4js6/M0= =4KTV -----END PGP SIGNATURE----- --eXM3mBlLGYhbge0/--