Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aaMES-0006zG-0t for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Feb 2016 11:43:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aaMER-0003Ex-Ji for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Feb 2016 11:43:19 +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) (envelope-from ) id 1aaMEQ-0003Eq-Qr for pgsql-hackers@postgresql.org; Mon, 29 Feb 2016 11:43:18 +0000 Received: from newmail.postgrespro.ru ([93.174.131.138] helo=mail.postgrespro.ru) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aaMEM-0005XS-Uv for pgsql-hackers@postgresql.org; Mon, 29 Feb 2016 11:43:18 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id 4D3F421C66AA; Mon, 29 Feb 2016 14:43:13 +0300 (MSK) Received: from mail.postgrespro.ru ([127.0.0.1]) by localhost (mail.postgrespro.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4Sry3syOsfG0; Mon, 29 Feb 2016 14:43:11 +0300 (MSK) Received: from [192.168.27.123] (unknown [192.168.27.1]) by mail.postgrespro.ru (Postfix) with ESMTPSA id 8EC4721C66A8; Mon, 29 Feb 2016 14:43:11 +0300 (MSK) Subject: Re: [REVIEW]: Password identifiers, protocol aging and SCRAM protocol To: pgsql-hackers@postgresql.org, Michael Paquier References: <56CF2DEA.8070204@postgrespro.ru> <56D06C67.8050306@postgrespro.ru> From: Valery Popov Message-ID: <56D42ECF.2060501@postgrespro.ru> Date: Mon, 29 Feb 2016 14:43:11 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <56D06C67.8050306@postgrespro.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 Hi, Michael >>> >>> >>> 23.02.2016 10:17, Michael Paquier пишет: >>>> Attached is a set of patches implementing a couple of things that have >>>> been discussed, so let's roll in. >>>> >>>> Those 4 patches are aimed at putting in-core basics for the concept I >>>> call password protocol aging, which is a way to allow multiple >>>> password protocols to be defined in Postgres, and aimed at easing >>>> administration as well as retirement of outdated protocols, which is >>>> something that is not doable now in Postgres. >>>> >>>> The second set of patch 0005~0008 introduces a new protocol, SCRAM. >>>> 9) 0009 is the SCRAM authentication itself.... >>> The theme with password checking is interesting for me, and I can give >>> review for CF for some features. >>> I think that review of all suggested features will require a lot of >>> time. >>> Is it possible to make subset of patches concerning only password >>> strength >>> and its aging? >>> The patches you have applied are non-independent. They should be apply >>> consequentially one by one. >>> Thus the patch 0009 can't be applied without git error before 0001. >>> In this conditions all patches were successfully applied and compiled. >>> All tests successfully passed. >> If you want to focus on the password protocol aging, you could just >> have a look at 0001~0004. > OK, I will review patches 0001-0004, for starting. > Below are the results of compiling and testing. ============================ I've got the last version of sources from git://git.postgresql.org/git/postgresql.git. vpopov@vpopov-Ubuntu:~/Projects/pwdtest/postgresql$ git branch * master Then I've applied patches 0001-0004 with two warnings: vpopov@vpopov-Ubuntu:~/Projects/pwdtest/postgresql$ git apply 0001-Add-facility-to-store-multiple-password-verifiers.patch 0001-Add-facility-to-store-multiple-password-verifiers.patch:2547: trailing whitespace. warning: 1 line adds whitespace errors. vpopov@vpopov-Ubuntu:~/Projects/pwdtest/postgresql$ git apply 0002-Introduce-password_protocols.patch vpopov@vpopov-Ubuntu:~/Projects/pwdtest/postgresql$ git apply 0003-Add-pg_auth_verifiers_sanitize.patch 0003-Add-pg_auth_verifiers_sanitize.patch:87: indent with spaces. if (!superuser()) warning: 1 line adds whitespace errors. vpopov@vpopov-Ubuntu:~/Projects/pwdtest/postgresql$ git apply 0004-Remove-password-verifiers-for-unsupported-protocols-.patch The compilation with option ./configure --enable-debug --enable-nls --enable-cassert --enable-tap-tests --with-perl was successful. Regression tests and all TAP-tests also passed successfully. Also I've applied patches 0005-0008 into clean sources directory with no warnings. vpopov@vpopov-Ubuntu:~/Projects/pwdtest2/postgresql$ git apply 0005-Move-sha1.c-to-src-common.patch vpopov@vpopov-Ubuntu:~/Projects/pwdtest2/postgresql$ git apply 0006-Refactor-sendAuthRequest.patch vpopov@vpopov-Ubuntu:~/Projects/pwdtest2/postgresql$ git apply 0007-Refactor-RandomSalt-to-handle-salts-of-different-len.patch vpopov@vpopov-Ubuntu:~/Projects/pwdtest2/postgresql$ git apply 0008-Move-encoding-routines-to-src-common.patch The compilation with option ./configure --enable-debug --enable-nls --enable-cassert --enable-tap-tests --with-perl was successful. Regression and the TAP-tests also passed successfully. The patch 0009 depends on all previous patches 0001-0008: first we need to apply patches 0001-0008, then 0009. Then, all patches were successfully compiled. All test passed. -- Regards, Valery Popov Postgres Professional http://www.postgrespro.com The Russian Postgres Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers