Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZPhem-0000nk-Ps for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Aug 2015 01:50:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZPhem-0003jH-Bz for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Aug 2015 01:50:12 +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 1ZPhel-0003hI-F8 for pgsql-hackers@postgresql.org; Thu, 13 Aug 2015 01:50:11 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZPheh-00017M-9o for pgsql-hackers@postgresql.org; Thu, 13 Aug 2015 01:50:10 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 9C34C5F7A0; Wed, 12 Aug 2015 21:50:06 -0400 (EDT) Date: Wed, 12 Aug 2015 21:50:06 -0400 From: Stephen Frost To: Michael Paquier Cc: Josh Berkus , Robert Haas , Peter Eisentraut , Heikki Linnakangas , pgsql-hackers Subject: Re: WIP: SCRAM authentication Message-ID: <20150813015006.GU3685@tamriel.snowman.net> References: <55CB5D38.5090503@gmx.net> <55CBA425.5070803@gmx.net> <20150812200938.GM3685@tamriel.snowman.net> <20150812203732.GN3685@tamriel.snowman.net> <55CBB8D5.7040501@agliodbs.com> <20150813012259.GQ3685@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="TdDkFkGUMNACHLaO" 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-61-generic (x86_64) X-Uptime: 21:44:29 up 8 days, 10:15, 3 users, load average: 0.10, 0.12, 0.13 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 --TdDkFkGUMNACHLaO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Michael Paquier (michael.paquier@gmail.com) wrote: > On Thu, Aug 13, 2015 at 10:22 AM, Stephen Frost wrote: > >> 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. >=20 > While looking at this stuff, I have been wondering as well about > moving the validutil field into the verifier catalog as well for > example. That's one. Agreed. > > 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. >=20 > SCRAM is a definition for an authorization protocol which includes > many verifiers, and the minimal requirement to consider that SCRAM is > implemented in a system is to have SCRAM-SHA1, per here: > http://tools.ietf.org/html/rfc5802 > For example we may want to have in parallel one verifier for > SCRAM-SHA1 and one for SCRAM-SHA256 for the same user, and I think > that we cannot close the door either to other SASL protocols, which is > why it may make sense to split the SCRAM patch into two with the basic > message protocol infrastructure in place. and further agreed here. In addition, I'd point out that this is not a novel area in secure applications- Kerberos/GSSAPI have long been doing this, with both MIT Kerberos and Heimdal providing multiple algorithms and supporting multiple password verifiers per user. Active Directory also, actually. When it comes to enterprise authentication systems and administrators who work with them, this is not overly complex nor suprising. Thanks! Stephen --TdDkFkGUMNACHLaO Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJVy/fOAAoJEO1sijiDR2RVeAoP/3ZU1+es0NqCsbWO5/rvn6eV uUrYhJXb01ikJgMviDcKa4g03TcgUNQb6FitGjRC+GQtUoljlIYFIovGPlA6RXnI 4Xmf9wPwinsEVLUvdgynSjrlVqBcBfe0wqkiF84wRsc6kJa9wMBRjQS0OOVpm8h5 QzUh/0FHFf/t+8MJMt23Osozx/A1RuVdG8CJWW5LgkX9cOvjFGeu+L+sebEAbzSJ UjrxxWUZ0Iw2KaxrYZQk2xu2/Z5oSFd6D6WYTZUecMG2JQepyTF8LkDMV7+hzzyu +O0oqHgBrSisfTNeFhTDCP63tiOXIK/NNvb03KYYK2O5olSKPYWbmXzWEVJLgrPF pRFPlM8Tmm8UB1fTAblACUkT56C5hh3nEm1i2zMoW5YbTEJvV3/IS1LLTwe67/UJ 87Vik2tV8HO6zXYKVAh2uluqVvoal1ftJmuoeD0qNCNFcgXfMzjwljdZMYyvierP 1EFFLUguWE4wtIiNreTmAtIPkYPTEeS1FI7vfo2Tvk0Ne5bDwzb9WsXWPtxPuGmv x8MVkAIkZdF+TOMJPWAcZ/SWBEn03HKAAId9xdTBCyGssl0utPPFsfSY8VpX6hWc KHSEg+K9abSmX75/LCH2sRptjrux9KqF0EUCDS7rS2OqXI0+1vz80F0t3hya9iJX pIx+LnAcNsywJLClDTne =jm+u -----END PGP SIGNATURE----- --TdDkFkGUMNACHLaO--