Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cI3jg-0005Jt-50 for pgsql-hackers@arkaria.postgresql.org; Sat, 17 Dec 2016 01:24:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cI3je-0007h4-O7 for pgsql-hackers@arkaria.postgresql.org; Sat, 17 Dec 2016 01:24:26 +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 1cI3jd-0007gn-J6 for pgsql-hackers@postgresql.org; Sat, 17 Dec 2016 01:24:25 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cI3ja-00011J-Te for pgsql-hackers@postgresql.org; Sat, 17 Dec 2016 01:24:24 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 6D2375F7B4; Fri, 16 Dec 2016 20:23:22 -0500 (EST) Date: Fri, 16 Dec 2016 20:23:22 -0500 From: Stephen Frost To: Michael Paquier Cc: Peter Eisentraut , Heikki Linnakangas , Robert Haas , Andres Freund , David Steele , Tom Lane , David Fetter , Alvaro Herrera , Magnus Hagander , Julian Markwort , PostgreSQL mailing lists , Valery Popov Subject: Re: pg_authid.rolpassword format (was Re: Password identifiers, protocol aging and SCRAM protocol) Message-ID: <20161217012322.GO18360@tamriel.snowman.net> References: <2d07165c-1793-e243-a2a9-e45b624c7580@iki.fi> <20161214145723.GJ23417@tamriel.snowman.net> <9dc32483-b24a-5832-53e0-fb62838f1315@iki.fi> <20161215134030.GI23417@tamriel.snowman.net> <7a3e9184-9fca-3593-ffe2-729d15df32a6@2ndquadrant.com> <20161216204244.GL18360@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="LpcCHpaCAbC4X43d" Content-Disposition: inline In-Reply-To: X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-91-generic (x86_64) X-Uptime: 20:20:13 up 161 days, 2:44, 33 users, load average: 0.07, 0.09, 0.11 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -5.0 (-----) 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 --LpcCHpaCAbC4X43d Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Michael, * Michael Paquier (michael.paquier@gmail.com) wrote: > On Sat, Dec 17, 2016 at 5:42 AM, Stephen Frost wrote: > > * Peter Eisentraut (peter.eisentraut@2ndquadrant.com) wrote: > >> On 12/15/16 8:40 AM, Stephen Frost wrote: > >> > I don't follow why we can't change the syntax for CREATE USER to all= ow > >> > specifying the verifier type independently. > >> > >> That's what the last patch set I looked at actually does. > > > > Well, same here, but it was quite a while ago and things have progressed > > since then wrt SCRAM, as I understand it... >=20 > From the discussions of last year on -hackers, it was decided to *not* > have an additional column per complains from a couple of hackers It seems that, at best, we didn't have consensus on it. Hopefully we are moving in a direction of consensus. > (Robert you were in this set at this point), and the same thing was > concluded during the informal lunch meeting at PGcon. The point is, > the existing SCRAM patch set can survive without touching at *all* the > format of pg_authid. We could block SCRAM authentication when > "password" is used in pg_hba.conf and as well as when "scram" is used > with a plain password stored in pg_authid. Or look at the format of > the string in the catalog if "password" is defined and decide the > authentication protocol to follow based on that. As I mentioned up-thread, moving forward with minimal changes to get SCRAM in certainly makes sense, but I do think we should be open to (and, ideally, encouraging people to work towards) having a seperate table for verifiers with independent columns for type and verifier. Thanks! Stephen --LpcCHpaCAbC4X43d Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJYVJOKAAoJEO1sijiDR2RVdjYQAJGRk85sl9sV1BzPsug1WAeu SbTXFXF3RQgfZFpqAEVHxGvx0Jv9cFAZisebN/Hv97LodYQX5V0vE4B9Z59G6kyQ kYO5cyZL6pnkaIJWqVfRX08DDiZq3DlyTmm7S5Oc/OXVr1fm1rSuFbtAsx4Gq/LG geDqdJ/SNSnN/FubRQKsF01KfFuHthpI84ZZn81TZmXBTZxS6WYpCOUuQTlKo7Z1 08tSGIs6qn86Plxf+8r58/hGz7+2o8MYOzjHDqAerA7d465P5VQLv/T588kgH1dz GFw2ewfU90JrNUFpLvDQaGLkQZarbOn73WctJLDLsFiYdmd3MxHfTR9z/Pe3kLzV OHbOSQ6MUcmWhptfPfrFN/JzMxK5ctkCx+2hi1MjmYyM5L+G8M8OpCgRX+4TaCir PI+R1XdzmtXraVpjVENcL78Qk3m++P3U4SS9vrIBI2ugWHYzxEj249PALYtgtc4h TG1tmWfwxGlk+bG/HPl5n2HW2xyJM9ZxpSYqGQPsrFJBZmlH+kYX2QcPVZNkjBkN QIRoZVK6P1HzGo2ZYnTgZou0bzwBUaax/lBxkKQTFH0rL7cxJTiKtAiVBHbE4Bcp arOw4LD+25NFWhcaZ04UmUWkG3J1Z3YRmTepXn8Ukbtd/jn9aJCt082awL1XUEBg xkBfjDScR5RMMcPFL0Ob =g929 -----END PGP SIGNATURE----- --LpcCHpaCAbC4X43d--