Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YTBlg-0007cD-IY for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Mar 2015 16:03:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YTBlg-0002BN-1B for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Mar 2015 16:03:28 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YTBle-0002BD-Ii for pgsql-hackers@postgresql.org; Wed, 04 Mar 2015 16:03:26 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YTBlb-0004kv-BN for pgsql-hackers@postgresql.org; Wed, 04 Mar 2015 16:03:24 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 797525F7B1; Wed, 4 Mar 2015 11:03:22 -0500 (EST) Date: Wed, 4 Mar 2015 11:03:22 -0500 From: Stephen Frost To: Magnus Hagander Cc: Bruce Momjian , PostgreSQL-development Subject: Re: MD5 authentication needs help Message-ID: <20150304160322.GY29780@tamriel.snowman.net> References: <20150304020146.GD24063@momjian.us> <20150304155230.GW29780@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="JOyJTfkrbmCrhSmw" 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-45-generic (x86_64) X-Uptime: 10:58:08 up 41 days, 15:47, 8 users, load average: 0.22, 0.24, 0.20 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 --JOyJTfkrbmCrhSmw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Magnus, * Magnus Hagander (magnus@hagander.net) wrote: > On Wed, Mar 4, 2015 at 4:52 PM, Stephen Frost wrote: > > A lot of discussion has been going on with SCRAM and SASL, which is all > > great, but that means we end up with a dependency on SASL or we have to > > reimplement SCRAM (which I've been thinking might not be a bad idea- > > it's actually not that hard), but another suggestion was made which may >=20 > I'd really rather not add a dependency on SASL if we can avoid it. I > haven't read up on SCRAM, but if it's reasonable enough to reimplement - = or > if there is a BSD licensed implementation that we can import into our own > sourcetree without adding a dependency on SASL, that sounds like a good w= ay > to proceed. I actually like the idea of supporting SASL generally, but I agree that we don't really want to force it as a dependency. I've started looking around for BSD-licensed SCRAM implementations and will update with any I find that are worthwhile to review. > > be worthwhile to consider- OpenSSL and GnuTLS both support TLS-SRP, the > > RFC for which is here: http://www.ietf.org/rfc/rfc5054.txt. We already > > have OpenSSL and therefore this wouldn't create any new dependencies and > > might be slightly simpler to implement. >=20 > OpenSSL is not a *requirement* today, it's an optional dependency. Given > it's license we really can't make it a mandatory requirement I think. So = if > we go down that route, we still leave md5 in there as the one that works > everywhere. >=20 > Also AFAICT TLS-SRP actually requires the connection to be over TLS - so > are you suggesting that TLS becomes mandatory? >=20 > It sounds like something that could be interesting to have, but not as a > solution to the "md5 problem", imo. No, I'm not suggesting that OpenSSL or TLS become mandatory but was thinking it might be good alternative as a middle-ground between full client-and-server side certificates and straight password-based auth (which is clearly why it was invented in the first place) and so, yes, md5 would still have to be kept around, but we'd at least be able to deprecate it and tell people "Use TLS-SRP if you really want to use passwords and care about network security". SCRAM doesn't actually fix the issue with network connection hijacking or eavesdropping, except to the extent that it protects the password itself, and so we might want to recommend, for people who are worried about network-based attacks, using TLS-SRP. Thanks! Stephen --JOyJTfkrbmCrhSmw Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJU9yzKAAoJEO1sijiDR2RV8ZIQAJpdeJF07H+z9qUDEMx1C1Nw MrOthYg9vj5NDkPL3w7dlpFjD9+/PtJO/xoVnJUNowJaDvFmNIrzaWlxNC5MoV/A HQeTb7BnZCRy1GUtBqnQa5dIYb20ztkUfDT3QfBdJ5ElUhTkc1P3SjXE82YGEJv3 6ZbxDOv2/HLaAkWjZYa1iQ+dgTNERMZuUzZaQF3mXm9C7bqSN9W8o7rTTAofCM9V L8LSyEm3riLAGVoS64TrAmKv6vl0ejfxcwnKGPOoLEn96nZTcog43F0epdyAezx3 GG0DyN5f/zaIygPRcBTEQwUwxDEtdNJzFycPC8Yhszl4Ua6SD5KO1LuZgHqLifQb TXdmFcwgtklqqEBb2QbLIjZVqCDzzPX8v0iDwezs1Zzo+KQMdycly7vuX2vSdzZs zdkWlh2w0wBPk70Hhck/sBajc7tILVI+UUN/75bML0wIyHrnGf+Py6sFWPDTl862 DqJIby8AFuTWgXhnIiWmoaCP/aaxDS6Md2DYXkfl5Hivzv8bbeQFV6aKi2Xce/RH 9EWOeN1wWskVpfsH6whW9CmZ3s87QkgQmkv2IhN+f/+r99CSzCmu3T5FEeRKezHN S5WsG0M0nXDcenvCcYoqi8R+fM8vl3w9k9TAUYBVsBNGDfO9Y9DsLUCeU+qEY4KX nv3gMtF4PACa8hKC+wg+ =dHNq -----END PGP SIGNATURE----- --JOyJTfkrbmCrhSmw--