Re: MD5 authentication needs help - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: MD5 authentication needs help
Date
Msg-id 20150306150020.GB3291@alvh.no-ip.org
Whole thread Raw
In response to Re: MD5 authentication needs help  (Stephen Frost <sfrost@snowman.net>)
Responses Re: MD5 authentication needs help  (Stephen Frost <sfrost@snowman.net>)
List pgsql-hackers
Stephen Frost wrote:
> * Josh Berkus (josh@agliodbs.com) wrote:

> > > 3)  Using the user name for the MD5 storage salt allows the MD5 stored
> > > hash to be used on a different cluster if the user used the same
> > > password. 
> > 
> > This is a feature as well as a bug. For example, pgBouncer relies on
> > this aspect of md5 auth.
> 
> It's not a feature and pgBouncer could be made to not rely on this.

Perhaps one of the requirements of a new auth method should be to allow
middlemen such as connection poolers.  It's been over two years since I
had a look, but IIRC pgbouncer had the very ugly requirement of its own
copy of user/passwords in a file, and of course you had to update it
separately if you changed the password in the server.  We need to make
it possible for it not to require any such thing.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: [PATCH] Add transforms feature
Next
From: Tom Lane
Date:
Subject: Re: Clamping reulst row number of joins.