Re: Can we stop defaulting to 'ident'?

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
Cc: Christoph Berg <myon(at)debian(dot)org>, Devrim Gündüz <devrim(at)gunduz(dot)org>, Craig Ringer <craig(at)2ndquadrant(dot)com>, pgsql-pkg-yum <pgsql-pkg-yum(at)postgresql(dot)org>
Subject: Re: Can we stop defaulting to 'ident'?
Date: 2020-05-20 23:00:27
Message-ID: 20200520230026.GQ3418@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-pkg-debian pgsql-pkg-yum

Greetings,

* Peter Eisentraut (peter(dot)eisentraut(at)2ndquadrant(dot)com) wrote:
> On 2020-05-20 17:33, Stephen Frost wrote:
> >>But this leads to other questions, like, what should pg_upgrade do?
> >Same as it always has- make the user deal with anything they need to
> >regarding postgresql.conf? Why would anything change with pg_upgrade?
>
> Well, one might expect that the user at least gets some kind of notification
> that something is changing. What happens when you end up with a mix of MD5
> and SCRAM passwords in pg_authid? Are users going to be notified about this
> somehow? Has this been thought through to the end? Have all combinations
> been tested?

I agree that these things should have been thought through and
considered and that the original patch should have addressed every
possible angle. That didn't happen though. There's things that could
be dealt with in the packaging to improve things for users of
pg_upgradecluster, but that's not on the RPM side anyway.

wrt the specific questions- if you have 'md5' in your pg_hba.conf then a
mix of md5 and SCRAM passwords will allow users to still log in- md5
will "upgrade" to SCRAM. If you have scram in pg_hba.conf then you have
to be using SCRAM to connect (which wasn't a great decision, but that's
what was implemented). Of course, that's not a problem for *new*
installs, and that's really what we're talking about here. We aren't
going to be changing any existing configurations with this, just the
*defaults* for new installs, which users who are using pg_upgrade are
going to have to change in just about all cases anyway, particularly on
RHEL.

Thanks,

Stephen

In response to

Browse pgsql-pkg-debian by date

  From Date Subject
Next Message apt.postgresql.org Repository Update 2020-05-21 09:32:29 postgresql-13 updated to version 13~beta1-1.pgdg+1
Previous Message Peter Eisentraut 2020-05-20 22:36:30 Re: Can we stop defaulting to 'ident'?

Browse pgsql-pkg-yum by date

  From Date Subject
Next Message Stephen Frost 2020-05-20 23:06:22 Re: Removing PL/Python2 from PostgreSQL 13
Previous Message Peter Eisentraut 2020-05-20 22:36:30 Re: Can we stop defaulting to 'ident'?