Re: Can we stop defaulting to 'ident'? - Mailing list pgsql-pkg-yum

From Stephen Frost
Subject Re: Can we stop defaulting to 'ident'?
Date
Msg-id 20200520145752.GD3418@tamriel.snowman.net
Whole thread Raw
In response to Re: Can we stop defaulting to 'ident'?  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Responses Re: Can we stop defaulting to 'ident'?  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Re: Can we stop defaulting to 'ident'?  (Devrim Gündüz <devrim@gunduz.org>)
List pgsql-pkg-yum
Greetings,

* Peter Eisentraut (peter.eisentraut@2ndquadrant.com) wrote:
> On 2020-05-20 15:40, Christoph Berg wrote:
> >Re: Peter Eisentraut
> >>The upstream default is still to use md5 passwords by default, and some
> >>deliberation has gone into that to keep it that way.  So it would make sense
> >>to have the RPMs also do that.  The Debian packages also still use md5.
> >>Some consistency across the board would be good.  Otherwise it will be very
> >>confusing for users if everyone just goes into their own direction.
> >
> >The upstream initdb default is still 'trust', but everyone agrees that
> >it's good that distributions are changing that so something more
> >secure, so we are already disconnected from the "true" default here.
>
> Sorry, I should have been more clear.  The upstream default of the GUC
> parameter "password_encryption" is md5.

Which, really, is pretty broken when we're going to be having our
packagers setting up pg_hba.conf to use scram- at the *very* least it's
ridiculously misleading because we're going to have SCRAM in pg_hba.conf
but passwords actually stored as md5 and therefore we won't be getting
the benefits from SCRAM auth (though it should still work, of course,
since the SCRAM mode will fall back to working with an md5 password).

I don't recall a v13 discussion around if we should continue to have md5
as the default for *new* installations for password_encryption.

> It is understood that the default client authentication method can be
> changed downstream.

While this discussion has been about pg_hba.conf, we really should clean
it all up and encourage users, by setting sane defaults, to use SCRAM.

That necessarily includes setting SCRAM as the password_encryption
method.

Thanks,

Stephen

Attachment

pgsql-pkg-yum by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Can we stop defaulting to 'ident'?
Next
From: Peter Eisentraut
Date:
Subject: Re: Turning on archive_mode by default