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 1iiGz8-0004YT-TT for pgsql-committers@arkaria.postgresql.org; Fri, 20 Dec 2019 12:02:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iiGz6-0003RQ-Na for pgsql-committers@arkaria.postgresql.org; Fri, 20 Dec 2019 12:02:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iiGz4-0003NJ-NL for pgsql-committers@lists.postgresql.org; Fri, 20 Dec 2019 12:02:20 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iiGz1-0005NY-Gj for pgsql-committers@lists.postgresql.org; Fri, 20 Dec 2019 12:02:17 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id A20FE430; Fri, 20 Dec 2019 07:02:13 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 20 Dec 2019 07:02:13 -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=2j0PcnApVSx1kP4IpT3SsMeRn1L CXZ99pdsy3cHnuTo=; b=OQvatEvilsST+xIKBl88p31WUEKON82VYUzprgwBRh3 LtzbYvUNGxitpNXDMMpjC2JjZubEqi4hv/Tr2qCrGbQL2ThcTH3w5t2cG6EguZPY z6qgLyk501hwMtARkQ93l1tV7dOLpdwHXxdNbymioSKrro2ptovpA6FOu2LUtjcx maj3a12xBdpbmaZjqCS3IGGKs/RgNLN5ByVMXJfxlFKCmth8YLskpwZEYVe9CJ8e BfDOAI84FctNgQMp85EMc/DEzaZJJuN+lcOUsyF69tj8tOpslKFig6ghuEzqclXd vaqyZviGBzE90faR9eH8e4HyltubqehnBMIFHw9eu3Q== 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=2j0Pcn ApVSx1kP4IpT3SsMeRn1LCXZ99pdsy3cHnuTo=; b=ScPsuJLKatabKVJBsStbxX kV/q/6I0XH26Sepd3SZMN0wOy8gs58gRhIAHaL3d2tFmflSHTuG/SSapyfohLqwN 711BjiR3eh5OpTLG92Im5wIw8vEsRBkloEUeS1k8B8eVILL9yGm+NPRWyK8QjIc6 NM+kKZ2ZlHX+6jIuEBV4N0OX09Iwc8NMhy8ajd3LKiiMRv4GlSTIhSP5xP4DRaJH Krvd/0wkjkWjqrMttFgRTViII0834d6fRc4qMYdwue6ffnoY1GLfITMBEyZ2tIBp vc00SXMh8+9gSMrKq3U9qWMPcRLfaigG5L18VKLAVL7fDRshxKwRdAjo8iLTSCsg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvddufedgfeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucfkphepudduuddruddtvddrudektddrudekheenucfrrghr rghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiienucevlh hushhtvghrufhiiigvpedt X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id B09AF80065; Fri, 20 Dec 2019 07:02:11 -0500 (EST) Date: Fri, 20 Dec 2019 21:02:08 +0900 From: Michael Paquier To: Andrew Dunstan Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Superuser can permit passwordless connections on postgres_fdw Message-ID: <20191220120208.GA4258@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="0OAP2g/MAC+5xKAE" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Andrew, On Fri, Dec 20, 2019 at 05:55:10AM +0000, Andrew Dunstan wrote: > Superuser can permit passwordless connections on postgres_fdw >=20 > Currently postgres_fdw doesn't permit a non-superuser to connect to a > foreign server without specifying a password, or to use an > authentication mechanism that doesn't use the password. This is to avoid > using the settings and identity of the user running Postgres. >=20 > However, this doesn't make sense for all authentication methods. We > therefore allow a superuser to set "password_required 'false'" for user > mappings for the postgres_fdw. The superuser must ensure that the > foreign server won't try to rely solely on the server identity (e.g. > trust, peer, ident) or use an authentication mechanism that relies on the > password settings (e.g. md5, scram-sha-256). >=20 > This feature is a prelude to better support for sslcert and sslkey > settings in user mappings. After this commit a couple of buildfarm animals are unhappy with the regression tests of postgres_fdw: CREATE ROLE nosuper NOSUPERUSER; +WARNING: roles created by regression test cases should have names starting with "regress_" GRANT USAGE ON FOREIGN DATA WRAPPER postgres_fdw TO nosuper; It is a project policy to only user roles prefixed by "regress_" in regression tests. 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. -- Michael --0OAP2g/MAC+5xKAE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl38uEAACgkQnvQgOdby QH2YYxAAiYGpBTBJ2PNEIgeq7Wd0foUN+K2XhVkSQbj45vkaWYDnitYrMw3tkw2v +e/MwrF2TYvb2YD4ozvzw+dNQNn7pCS/SA2LhRrnOvAe/UAlQv6cp1fB9QVk9VUZ zLmvVVF5jruf1TMO8UTVFcaJzdM88VOTm04Ae1mRMLLqhV6Dt5XRQTIHJPKk13nH tP3HeoDSVsLP6LE0UnsoGGz4EXDdbLI/NEPlJ67D5yTD5ZRBb3XbOpudjsSrqGxX D2lFTq0AXV1HKvyHWEfm32yKoaYOpLUKQ6kblmxKF1Z8jo9svpE7ibUPDxqRR8XV JmFoLrQwPPNtFTN3zl5ueCxrax50ihghn+UxJ+7ablke0o3+T/If6BzmpAcHMJXm jvIJA+VbrgqJeqOcKfXpnGmJR/YghZqABrOXkZMNY36+PSFhHwLTzrUfZc8RnBav P5Zb6GtxXBy7xkYEqNJ8r4q62Mp+WcO9O4D4DIA+KffEKPlhIoWCmFI1Zxqs69su sVHillfsPozlE6xXw2EDXiDMfzWP+49WJ2xpMBFU/5VuP885d6u0dU6n827EtEMo /s+B5ffESG+m5IEU7AoiQ9x5swEoeIAEJWu/LcAwRuW92v3HJySTkr/oW61uYljb esyB/eHkKNC4kE17QaeRF/vOcZ5Sq4c1S1RQALTO2KdgIQUK3pg= =C8ju -----END PGP SIGNATURE----- --0OAP2g/MAC+5xKAE--