Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iiNZu-0005kB-RB for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Dec 2019 19:04:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iiNZt-00009X-0J for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Dec 2019 19:04:45 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1iiNZs-00009Q-NX for pgsql-hackers@lists.postgresql.org; Fri, 20 Dec 2019 19:04:44 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iiNZq-0003Pu-EX for pgsql-hackers@lists.postgresql.org; Fri, 20 Dec 2019 19:04:44 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id xBKJ4b8W011298; Fri, 20 Dec 2019 14:04:37 -0500 From: Tom Lane To: Michael Paquier cc: Andrew Dunstan , pgsql-hackers@lists.postgresql.org Subject: Re: pgsql: Superuser can permit passwordless connections on postgres_fdw In-reply-to: <20191220120208.GA4258@paquier.xyz> References: <20191220120208.GA4258@paquier.xyz> Comments: In-reply-to Michael Paquier message dated "Fri, 20 Dec 2019 21:02:08 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <11296.1576868677.1@sss.pgh.pa.us> Date: Fri, 20 Dec 2019 14:04:37 -0500 Message-ID: <11297.1576868677@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk [ redirecting to -hackers ] Michael Paquier writes: > On Fri, Dec 20, 2019 at 05:55:10AM +0000, Andrew Dunstan wrote: >> Superuser can permit passwordless connections on postgres_fdw > After this commit a couple of buildfarm animals are unhappy with the > regression tests of postgres_fdw: Yeah, the buildfarm is *very* unhappy with this. > CREATE ROLE nosuper NOSUPERUSER; > +WARNING: roles created by regression test cases should have names > starting with "regress_" That one is just failure to follow the guidelines, and is easily fixed by adjusting the test case. > These is also a second type of failure: > -HINT: Valid options in this context are: [...] krbsrvname [...] > +HINT: Valid options in this context are: [...] > The diff here is that krbsrvname is not part of the list of valid > options. Anyway, as this list is build-dependent, I think that this > test needs some more design effort. This is a bit messier. But I think that the discrepancy is not really the fault of this patch: rather, it's a bug in the way the GSS support was put into libpq. I thought we had a policy that all builds would recognize all possible parameters and then perhaps fail later. Certainly the SSL parameters are implemented that way. The #if's disabling GSS stuff in PQconninfoOptions[] are just broken, according to that policy. regards, tom lane