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 1lbl37-00053z-2W for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Apr 2021 14:20:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lbl35-0005yA-Ul for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Apr 2021 14:20:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lbl35-0005y3-NU for pgsql-hackers@lists.postgresql.org; Wed, 28 Apr 2021 14:20:19 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lbl33-0004v5-OB for pgsql-hackers@postgresql.org; Wed, 28 Apr 2021 14:20:19 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 13SEKEKl2796700; Wed, 28 Apr 2021 10:20:14 -0400 From: Tom Lane To: Peter Eisentraut cc: pgsql-hackers Subject: Re: pg_hba.conf.sample wording improvement In-reply-to: References: Comments: In-reply-to Peter Eisentraut message dated "Wed, 28 Apr 2021 07:51:43 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2796698.1619619614.1@sss.pgh.pa.us> Date: Wed, 28 Apr 2021 10:20:14 -0400 Message-ID: <2796699.1619619614@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Eisentraut writes: > I propose the attached patch to shake up the wording in the connection > type section of pg_hba.conf.sample a bit. After the hostgssenc part was > added on, the whole thing became a bit wordy, and it's also a bit > inaccurate for example in that the current wording for "host" appears to > say that it does not apply to GSS-encrypted connections. +1 for revising it in this general way. I notice you omitted "TCP/IP" from the last line though: +# - "hostnogssenc" is a not GSSAPI-encrypted socket which doesn't seem consistent. Another thought is to switch the phrase order: +# - "local" is a Unix-domain socket +# - "host" is a TCP/IP socket (encrypted or not) +# - "hostssl" is a TCP/IP socket that is SSL-encrypted +# - "hostnossl" is a TCP/IP socket that is not SSL-encrypted +# - "hostgssenc" is a TCP/IP socket that is GSSAPI-encrypted +# - "hostnogssenc" is a TCP/IP socket that is not GSSAPI-encrypted I'm not wedded to that idea, but it seems to help reduce random variations between the wordings of these lines. regards, tom lane