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 1lc8FF-00054U-2e for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Apr 2021 15:06:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lc8FE-0005Fr-0O for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Apr 2021 15:06:24 +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 1lc8FD-0005Fj-QE for pgsql-hackers@lists.postgresql.org; Thu, 29 Apr 2021 15:06:23 +0000 Received: from tamriel.snowman.net ([70.109.60.50]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lc8F9-0002EE-24 for pgsql-hackers@postgresql.org; Thu, 29 Apr 2021 15:06:22 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 52DB85F799; Thu, 29 Apr 2021 11:06:18 -0400 (EDT) Date: Thu, 29 Apr 2021 11:06:18 -0400 From: Stephen Frost To: Magnus Hagander Cc: Peter Eisentraut , Alvaro Herrera , pgsql-hackers Subject: Re: pg_hba.conf.sample wording improvement Message-ID: <20210429150618.GT20766@tamriel.snowman.net> References: <20210428140946.GA13248@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="D9gxV91GU/AWGmAd" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --D9gxV91GU/AWGmAd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Magnus Hagander (magnus@hagander.net) wrote: > On Thu, Apr 29, 2021 at 7:08 AM Peter Eisentraut > wrote: > > On 28.04.21 16:09, Alvaro Herrera wrote: > > > Looking at it now, I wonder how well do the "hostno" options work. I= f I > > > say "hostnogssenc", is an SSL-encrypted socket good? If I say > > > "hostnossl", is a GSS-encrypted socket good? If so, how does that ma= ke > > > sense? > > > > I think for example if you want to enforce SSL connections, then writing > > "hostnossl ... reject" would be sensible. That would also reject > > GSS-encrypted connections, but that would be what you want in that scen= ario. >=20 > I'd say the interface has become a lot less well-matching now that we > have two separate settings for it. For example right now it's more > complex to say "reject anything not encrypted", which I bet is what a > lot of people would want. They don't particularly care if it's gss > encrypted or ssl encrypted. I'm not really sure that I agree it's such an issue, particularly since you have to come up with a way to specify the auth method to use somehow too as we haven't got any fallback mechanism or anything like that. While you might use cert-based auth or SCRAM for TLS connections, it isn't the case that you can use SCRAM with a GSS encrypted connection. > Perhaps what we want to do (obviously not for 14) is to allow you to > specify more than one entry in the first column, so you could say > "hostssl,hostgssenc" on the same row? That would give some strange > results with the "no" mappings, but it might work if used right? In general, I'm not against the idea of giving more options but I'm just not sure that it's a real use-case when you consider that the auth method also has to be specified. I also don't recall anyone showing up asking about how they could specify "encrypted but I don't care how". Thanks, Stephen --D9gxV91GU/AWGmAd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJgistpAAoJEO1sijiDR2RVk8wP/2S2LlDgmU7IP1ATt5ilwC5A QQ0//VfbRvQpQHBPwLLe3UhWu3TiBjdA+L4GLvFomEhf9uW2pQ2j92JzA1WztbUQ G0wjIqMh4bvFJnGmhP5uyoZ4NledEew1lJ5Ohx/cBYXE7RFa6T5cdP5H7Ugg29aU btgl29gxMC3lnMNln1PSUiE865HSA5nvsL6kgZwrfGscyvK1Oi8gv15ad6ZnH3cm W615ju3GuuL2HyxRFg8T3zHKfrpE1Qm4TbkwYx68sMn64ZPPjD8cZqHUmhFliXYC OBJHV0nDNpU6NZwLbqrRyO2MITOd95LrLhJ+Kr1zEke9lqZCWndaPtpELXlWk37Z cLhinJIbDUGkYpRuzManhUtc7YcADNaozY/OFZTmiRTu856OFZWo39RdyR+k0yEM Ct8imq8W5/vSK44wR5IXkDz9xYMSMpI5j5P5K+seg4yaBWIsf07sZVw2zsKZUGxD jfUZG1P9wIRDXZLUKzClDz7BpyliI/Cvcae0mxOUU6du2PMYBMPfTHSF6rPikK0+ /AEeD2FGrX1PDQt8iQeiD4Q5lG1OwYk9UeOsHVJLCksMtLUvByLFCzrXoZfzR98b ynaAtOIDXk58BAYgh0EFzg6PDJAVl7f51J1lTfCjCFowboG3ZZmROixdpAOw6TkH wRZySl4NYrzWMNJCMqoz =eGG1 -----END PGP SIGNATURE----- --D9gxV91GU/AWGmAd--