Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cosAs-00069I-IS for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Mar 2017 13:44:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cosAs-0001DN-5H for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Mar 2017 13:44:10 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cos9L-0002tA-T5 for pgsql-hackers@postgresql.org; Fri, 17 Mar 2017 13:42:35 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cos9J-0000SQ-Kv for pgsql-hackers@postgresql.org; Fri, 17 Mar 2017 13:42:35 +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 v2HDgLrw028652; Fri, 17 Mar 2017 09:42:21 -0400 From: Tom Lane To: Robert Haas cc: Heikki Linnakangas , Michael Paquier , Jeff Janes , Joe Conway , pgsql-hackers Subject: Re: scram and \password In-reply-to: References: <29551.1489459676@sss.pgh.pa.us> <39228d95-2560-19e4-d907-b1fd5a75fd23@joeconway.com> <6425.1489506016@sss.pgh.pa.us> <16350.1489526094@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Fri, 17 Mar 2017 09:31:30 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28650.1489758141.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 17 Mar 2017 09:42:21 -0400 Message-ID: <28651.1489758141@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Robert Haas writes: > On Fri, Mar 17, 2017 at 8:32 AM, Heikki Linnakangas wro= te: >> It would make sense to have \password obey password_encryption GUC. Then >> \password and ALTER USER would do the same thing, which would be less >> surprising. Although it's also a bit weird for a GUC to affect client-si= de >> behavior, so perhaps better to just document that \password will create a >> SCRAM verifier, unless you explicitly tell it to create an MD5 hash, and= add >> a 'method' parameter to it. > Either of those would be fine with me, but I think we should do one of th= em. I vote for the second one; seems much less surprising and action-at-a- distance-y. And I think the entire point of \password is to *not* do exactly what a bare ALTER USER would do, but to superimpose a layer of best practice on it. We certainly want to define use of SCRAM as being best practice. regards, tom lane --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers