Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZPhFl-0007s5-P2 for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Aug 2015 01:24:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZPhFl-0008In-AP for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Aug 2015 01:24:21 +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 1ZPhEU-0006TR-Ot for pgsql-hackers@postgresql.org; Thu, 13 Aug 2015 01:23:02 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZPhES-0008MN-2x for pgsql-hackers@postgresql.org; Thu, 13 Aug 2015 01:23:01 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 6712F5F7A0; Wed, 12 Aug 2015 21:22:59 -0400 (EDT) Date: Wed, 12 Aug 2015 21:22:59 -0400 From: Stephen Frost To: Josh Berkus Cc: Robert Haas , Peter Eisentraut , Heikki Linnakangas , Michael Paquier , pgsql-hackers Subject: Re: WIP: SCRAM authentication Message-ID: <20150813012259.GQ3685@tamriel.snowman.net> References: <55CA4085.30101@gmx.net> <55CB5D38.5090503@gmx.net> <55CBA425.5070803@gmx.net> <20150812200938.GM3685@tamriel.snowman.net> <20150812203732.GN3685@tamriel.snowman.net> <55CBB8D5.7040501@agliodbs.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="OGdp5inFq4AVlqlU" Content-Disposition: inline In-Reply-To: <55CBB8D5.7040501@agliodbs.com> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-61-generic (x86_64) X-Uptime: 19:38:09 up 8 days, 8:08, 4 users, load average: 0.02, 0.07, 0.12 User-Agent: Mutt/1.5.21 (2010-09-15) 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 --OGdp5inFq4AVlqlU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Josh Berkus (josh@agliodbs.com) wrote: > On 08/12/2015 01:37 PM, Stephen Frost wrote: > > Would be great to get comments on the other comments, specifically that > > adding SCRAM's password verifier won't seriously change the security of > > a user's account or password based on an attack vector where the > > contents of pg_authid is compromised. I do agree with the general > > concern that the additional complexity involved in supporting multiple > > password verifiers may result in bugs, and likely security ones, but I > > really expect the larger risk to be from the SCRAM implementation itself > > than how we get data into and back out of our own catalogs. >=20 > There's also the concern that the additional complexity will cause > *users* to make security-compromising mistakes, which I think is the > greater risk. Robert has mostly won me over to his point of view on this. That is certainly an issue to address- but that's one which I believe we can address a great deal better than what we're doing with the currently proposed patch. I do feel we need to provide flexibility and options, but we also need to consider the simple case and make sure that it remains simple. > The only case where I can see multiple verifiers per role making a real > difference in migrations is for PGAAS hosting. But the folks from > Heroku and AWS have been notably silent on this; lemme ping them. While their insight is certainly valuable, they are certainly not the only cases of one-user-to-rule-them-all environments. Further, there's going to be cases where multiple applications from different languages are accessing the database through the same account because there's only one account. I'd rather not punt on those cases and, further, assume that we'll always be able to keep it to only one password verifier per account. As I tried to outline up-thread, there are a set of features which would be very nice for us to have which require further information to be saved beyond even these different password verifiers for each. As mentioned elsewhere, even SCRAM is possible of having multiple password verifiers based on the various algorithms used. In other words, I doubt the 'only one password verifier per role' approach is going to work out for us long term in any case. Thanks! =09 Stephen --OGdp5inFq4AVlqlU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJVy/FzAAoJEO1sijiDR2RVTpMP/2QNPifWqfIzmcwgMmUiF1ad CGMEPkRs/RPseBOFtWjpTpoGVgao0Az/w7V97NtdhEyk5N+/6R7C+cwjwDPW4+8L GAAmVlef3Iv4hVPbDvozPve2A+uh39hbkIXJ16ZhHSEEC14cMGLCTthxmrM1rHz9 ND7RjwxHILNG2rjWsNlwYAEv+M3LQBgSCBrr8ps7XZsGRVmrgLp/P/hO74glfNKx n5WdJ8HYDMX2fiQ5FS2YS9BsWOX7TuoWPcovrd4F/s0hy7CTge8ji0RBsuEHFUbM pynkSb2ZduEtCb14iEb9nQglErl7LIAueVHa5WycbX3ShFWu7GxSOO7F3krWrPCm DALogrm9n0K2jTGhdiaKu+2gck3uhy4ykr4qkkbjBtQ5FhnUxY7GXQyErBYeEPa0 Z2Mrjjcc3Jm+6fwzFTMI00+Xb89me7gbrMgYbljkQa+vxTFhtUlDErDDHDKwu7eB rEuDT9TkRb88Ws4zip3R3I3jcHjua4WD7idH1buXt0E4+TpqfBMPuAmqm6Mz03ox La4y9T4zgCpnu3unmYHJ1n/mhV+Mq2QmgANcQ3m8TA8fv5xbbuFFLvyFQgul2H36 xI38cwgv9c6P03vYYEDSluuQtmy7FLSb8ENnbk6IrCxaxfMAkbL1S77XQnGTOgq2 irfSwDklaDkQsD4Q+LeZ =rYNu -----END PGP SIGNATURE----- --OGdp5inFq4AVlqlU--