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 1jc3Pj-0004fd-ID for pgsql-pkg-yum@arkaria.postgresql.org; Fri, 22 May 2020 08:52: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 1jc3Pi-0003xW-7X for pgsql-pkg-yum@arkaria.postgresql.org; Fri, 22 May 2020 08:52: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 1jc3Pi-0003xP-2I for pgsql-pkg-yum@lists.postgresql.org; Fri, 22 May 2020 08:52:22 +0000 Received: from forward5-smtp.messagingengine.com ([66.111.4.239]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jc3Pf-0001Cy-7C for pgsql-pkg-yum@postgresql.org; Fri, 22 May 2020 08:52:20 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.nyi.internal (Postfix) with ESMTP id 648B91942544; Fri, 22 May 2020 04:52:18 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 22 May 2020 04:52:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=fm2; bh=zWoVl+Y0+itZ/+a9B4gSLIYHZUpVyYNCqmTxax+3E HI=; b=Mk8tWs/oEK8pDAXOnIcHdKVCY+39BHCETQ4WTyJClgsXfNBt7mPbeZUQ+ UONqFgxYI3+3zhtL0AFNcJQMxdqhEw3wXpO+EFSCG3Z+5pXdAloKPA55pLfjf4Bp iMmX4fZgpoCjkKAkZkrpoY2fSoi7yufAM/ggNNiesNdSL9BkyrkywxLdERi7UDbR Q6O8MwBBOshpVy4MopDYRweEx0imSZTRnUrDlweZDBTsbLSx/WEOYNkzviBD4uQ6 V1bndWs7wRzScpYWj9ROfu8+9QXcyfqxR+bFfqFwGrrPQ5TnJBywWS9sOrz88zaY 36O1VuhX6FxOFFmlkwkSXlwdYn0jA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddufedgtdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffhvfhfohfkffgfgggjtgfgsehtjeertddtfeehnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomheqnecuggftrfgrthhtvghrnhepvdehudfhjeduheetvdev gffhvedvtdejuedvuddvueehledtleehhfdvueevtdefnecuffhomhgrihhnpegtohhnfh drshhopddvnhguqhhurggurhgrnhhtrdgtohhmnecukfhppeelfedrvdegfedrkedvrddv geeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepph gvthgvrhdrvghishgvnhhtrhgruhhtsedvnhguqhhurggurhgrnhhtrdgtohhm X-ME-Proxy: Received: from april.pezone.net (p5df352f6.dip0.t-ipconnect.de [93.243.82.246]) by mail.messagingengine.com (Postfix) with ESMTPA id 2EEF43065139; Fri, 22 May 2020 04:52:17 -0400 (EDT) Subject: Re: Can we stop defaulting to 'ident'? From: Peter Eisentraut To: Stephen Frost References: <7761d006b5ace13a4d86ce489123e5004aaf8b6c.camel@gunduz.org> <20200519212710.GQ13712@tamriel.snowman.net> <6089d4c8e262dd6fe8a6510c283e674543a24b5c.camel@gunduz.org> <3869d8c9-c212-8d73-52f4-13b03abe4813@2ndquadrant.com> <20200520134035.GD296739@msg.df7cb.de> <3a7d55ed-6abb-2005-23d7-8411bb9f5651@2ndquadrant.com> <20200520145752.GD3418@tamriel.snowman.net> <32b7fe66-f0e6-42e5-3c95-7d123e7d7f6d@2ndquadrant.com> Cc: Christoph Berg , =?UTF-8?B?RGV2cmltIEfDvG5kw7x6?= , Craig Ringer , pgsql-pkg-yum Organization: 2ndQuadrant Message-ID: Date: Fri, 22 May 2020 10:52:16 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <32b7fe66-f0e6-42e5-3c95-7d123e7d7f6d@2ndquadrant.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-05-20 17:03, Peter Eisentraut wrote: > On 2020-05-20 16:57, Stephen Frost wrote: >> Greetings, >> >> * Peter Eisentraut (peter.eisentraut@2ndquadrant.com) wrote: >>> Sorry, I should have been more clear. The upstream default of the GUC >>> parameter "password_encryption" is md5. >> >> Which, really, is pretty broken when we're going to be having our >> packagers setting up pg_hba.conf to use scram- at the *very* least it's >> ridiculously misleading because we're going to have SCRAM in pg_hba.conf >> but passwords actually stored as md5 and therefore we won't be getting >> the benefits from SCRAM auth (though it should still work, of course, >> since the SCRAM mode will fall back to working with an md5 password). > > Devrim's commit to pgrpms did include a change to the default setting of > password_encryption, so it appears to be correct as far as it goes. I found that if you use initdb's -A option to set the default authentication method, then the passsword_encryption setting is automatically adjusted in postgresql.conf. So this patch probably isn't even necessary. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services