Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YTBop-0007n6-Ju for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Mar 2015 16:06:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YTBop-00053W-1i for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Mar 2015 16:06:43 +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 1YTBon-000514-NF for pgsql-hackers@postgreSQL.org; Wed, 04 Mar 2015 16:06:41 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YTBog-0004qh-1D for pgsql-hackers@postgreSQL.org; Wed, 04 Mar 2015 16:06:39 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 5E1085F7B1; Wed, 4 Mar 2015 11:06:33 -0500 (EST) Date: Wed, 4 Mar 2015 11:06:33 -0500 From: Stephen Frost To: Andres Freund Cc: Bruce Momjian , PostgreSQL-development Subject: Re: MD5 authentication needs help Message-ID: <20150304160633.GZ29780@tamriel.snowman.net> References: <20150304020146.GD24063@momjian.us> <20150304155230.GW29780@tamriel.snowman.net> <20150304155921.GJ30405@awork2.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="O4mGAVrr2vwGVaZ3" Content-Disposition: inline In-Reply-To: <20150304155921.GJ30405@awork2.anarazel.de> 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: 11:03:42 up 41 days, 15:52, 8 users, load average: 0.04, 0.15, 0.18 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 --O4mGAVrr2vwGVaZ3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Andres Freund (andres@2ndquadrant.com) wrote: > Hi, >=20 > On 2015-03-04 10:52:30 -0500, Stephen Frost wrote: > > I've been discussing this with a few folks outside of the PG community > > (Debian and Openwall people specifically) and a few interesting ideas > > have come out of that which might be useful to discuss. > >=20 > > The first is a "don't break anything" approach which would move the > > needle between "network data sensitivity" and "on-disk data sensitivity" > > a bit back in the direction of making the network data more sensitive. >=20 > I think that's a really bad tradeoff for pg. There's pretty good reasons > not to encrypt database connections. I don't think you really can > compare routinely encrypted stuff like imap and submission with > pg. Neither is it as harmful to end up with leaked hashes for database > users as it is for a email provider's authentication database. I'm confused.. The paragraph you reply to here discusses an approach which doesn't include encrypting the database connection. > > 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 > > 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 > We don't have a hard dependency openssl, so I can't really see that > being a fully viable alternative to md5 TBH. Right, agreed, that wasn't intended to be a complete replacement for md5 but rather an additional auth mechanism we could get nearly "for free" which would provide password-based authentication with network-level encryption for users who are worried about network-based attacks (and therefore want to or are already using TLS, as Debian is configured to do by default...). Thanks! Stephen --O4mGAVrr2vwGVaZ3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJU9y2IAAoJEO1sijiDR2RViScP+gLQAJ3ml5t90yPthPZ/SIkS MypLEbizWu+uYZohkrpuGup843hZ2SnwZfGydxGTKTbgOs7pQZPR+ryrUN1o+KGP 9GKfZGf7VyUDUXL0rD/kVIZtv1n+P6svzga5dUDekOtmYSbdQK/BlfaGnq4Ak2lu ls+t3jBK0YQc5/8kTdEPczJHOKHUQfWDUTZwzSI8NdQlc7GnNfRe1IY0/+mvfoHm bT0TprkXVcMDN78Kj4VocXh4mjBncBZjNUbu6HP77/lFq3uZ+fyY9uhAeciUeE2I KwNUHDGgCNQbElcE7JVe0dgfm/hNjADry+RqURNsmDuMfwrECqPfRoq4r9e7Hwsc 9hsYxtBkIsmZLCnZgnpbBjxe5sfB69OBSgpvozPmt4W9v7+EZ6bPNRvjBt2oG9xQ 2RtbJadYGOpWFH2u8LDTYgDlPdJjYM5LtAV+w7XJyPp+xQtT+KzXWZxj6vp1YGAQ ZS2NRA3yt9dehtHkHqS7pgn2iCM7QkA0t2x2qzn6gJ+pTQ25Ulfj8XYYClvlAaM8 QMfTJRPhv1u6v+E7OI7fixHtpVB7so1T0LFBzbfogPArLYs1VClYtnfWXoYQy0rG N1p35vDb1wpe4qHP07puqFAfd9LBTEwRWmPXAxzrSU7AoPq/EXRHms/X9DzWzuVU 8F6JCVlJ+goU1r3QoaXF =hwYv -----END PGP SIGNATURE----- --O4mGAVrr2vwGVaZ3--