Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZNmfJ-0007Sc-O7 for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Aug 2015 18:46:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZNmfJ-0008Nv-8i for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Aug 2015 18:46:49 +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) (envelope-from ) id 1ZNme2-0006xK-90 for pgsql-hackers@postgresql.org; Fri, 07 Aug 2015 18:45:30 +0000 Received: from mail-wi0-x22d.google.com ([2a00:1450:400c:c05::22d]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZNmdz-0007xw-1s for pgsql-hackers@postgresql.org; Fri, 07 Aug 2015 18:45:29 +0000 Received: by wibxm9 with SMTP id xm9so71786767wib.0 for ; Fri, 07 Aug 2015 11:45:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=nDF7yYuZGjDVZ2MjW9D7qJETI98DxiCT1jZVecYWZdo=; b=05oyXm76Rt96KIf+92FKP/S7CzeUeuGjYHuSZM6PBRm+RIYkDYDttpihaHndAGw9eG rS+rtX5LFlyenvjIYpiVaeerymTXcaeBSPhmjMLVhXT3ICno77XBHXse0EkWpPKdjIz4 G/PemyYE8r9ojkSc7x9uFa9sPPfWz1EiDzKg/n/wjXBnpztA7EO9f7GuOtEG7M0JdPqX kSqgo+R2gson7BGTm5thHEdBC0obVrfUyDU4AvTBCkkYSnj1jb8VNooNJuy+SsHBoTZz H0pYC9wc9878KJpku3yrMZ7CLN90EvggocAdlCGGwbb1ji0cdRWPMkP2ke9/+qe91ML8 9v5w== X-Received: by 10.194.58.130 with SMTP id r2mr17780532wjq.72.1438973125395; Fri, 07 Aug 2015 11:45:25 -0700 (PDT) Received: from [192.168.1.105] (dsl-hkibrasgw1-58c38f-82.dhcp.inet.fi. [88.195.143.82]) by smtp.gmail.com with ESMTPSA id di7sm113306wib.23.2015.08.07.11.45.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Aug 2015 11:45:24 -0700 (PDT) Message-ID: <55C4FCC2.3000503@iki.fi> Date: Fri, 07 Aug 2015 21:45:22 +0300 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0 MIME-Version: 1.0 To: Robert Haas , Michael Paquier CC: pgsql-hackers Subject: Re: WIP: SCRAM authentication References: <55192AFE.6080106@iki.fi> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.4 (--) 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 On 08/07/2015 09:26 PM, Robert Haas wrote: > Maybe I'm chiming in too late here but I am sorta unimpressed by this. > If the user's password is stored both MD5-hashed and hashed some other > way in the system catalogs, that's less secure than storing it in the > least secure of those ways. And I'm afraid that if we introduce this > new mechanism, we won't really gain any security, because everybody > will just pg_dump or pg_upgrade and the old passwords will stick > around in the system forever. In fact we might lose security if > somebody changes one password verifier but doesn't realize that the > other one is still floating around, memorializing the old password, > and still available to be used for login. Yeah, that's certainly a risk. You wouldn't want to keep around verifiers for authentication methods you don't use. > I think we should look for a solution that either (a) allows SCRAM > authentication without requiring any changes to the contents of > pg_authid, like what Heikki proposed before; or (b) forces a hard > break, where at each password change you can decide if you want the > old or new format (probably based on the current value of some > compatibility GUC). Yeah, something to force a hard break when you want it would be really good. Perhaps a command you can run to remove all MD5 hashes, or at least find all the roles that have them. And a GUC to disallow creating new ones. - Heikki -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers