Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cnoaN-0003ux-Ea for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Mar 2017 15:42:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cnoaN-0003pq-1X for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Mar 2017 15:42:07 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cnoYr-0007i8-Dx for pgsql-hackers@postgresql.org; Tue, 14 Mar 2017 15:40:33 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cnoYo-0005NO-Va for pgsql-hackers@postgresql.org; Tue, 14 Mar 2017 15:40:32 +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 v2EFeGNf006426; Tue, 14 Mar 2017 11:40:16 -0400 From: Tom Lane To: Joe Conway cc: Heikki Linnakangas , Robert Haas , Michael Paquier , Jeff Janes , pgsql-hackers Subject: Re: scram and \password In-reply-to: <39228d95-2560-19e4-d907-b1fd5a75fd23@joeconway.com> References: <29551.1489459676@sss.pgh.pa.us> <39228d95-2560-19e4-d907-b1fd5a75fd23@joeconway.com> Comments: In-reply-to Joe Conway message dated "Tue, 14 Mar 2017 08:30:25 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <6424.1489506016.1@sss.pgh.pa.us> Date: Tue, 14 Mar 2017 11:40:16 -0400 Message-ID: <6425.1489506016@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 Joe Conway writes: > On 03/14/2017 03:15 AM, Heikki Linnakangas wrote: >> If the server isn't set up to do SCRAM authentication, i.e. there are no >> "scram" entries in pg_hba.conf, and you set yourself a SCRAM verifier, >> you have just locked yourself out of the system. I think that's a >> non-starter. There needs to be some more intelligence in the decision. > Yes, this was exactly my concern. This seems like a serious usability fail. >> It would be a lot more sensible, if there was a way to specify in >> pg_hba.conf, "scram-or-md5". We punted on that for PostgreSQL 10, but >> perhaps we should try to cram that in, after all. > I was also thinking about that. Basically a primary method and a > fallback. If that were the case, a gradual transition could happen, and > if we want \password to enforce best practice it would be ok. Why exactly would anyone want "md5 only"? I should think that "scram only" is a sensible pg_hba setting, if the DBA feels that md5 is too insecure, but I do not see the point of "md5 only" in 2017. I think we should just start interpreting that as "md5 or better". regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers