From: Nathan Bossart <nathandbossart@gmail.com>
To: Greg Sabino Mullane <htamfids@gmail.com>
Cc: Isaac Morland <isaac.morland@gmail.com>
Cc: Aleksander Alekseev <aleksander@timescale.com>
Cc: tgl@sss.pgh.pa.us, pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: PATCH: warn about, and deprecate, clear text passwords
Date: Tue, 25 Feb 2025 09:34:30 -0600
Message-ID: <Z73jBpWlBEuvLjEj@nathan> (raw)
In-Reply-To: <CAKAnmmLPmt_=tC_KsPMV1W2qGmgyLTx47bAKmh1RQhofhNZcLQ@mail.gmail.com>
References: <CAKAnmmJcXyLeBUJfqCx+-gRmkooDPnH7OmM4o=2HJRXzbMkP_g@mail.gmail.com>
<CAJ7c6TP=nGgMhzrNgT8uzqaQj_nkT6HkYNgUyYcDqaL3R8dGog@mail.gmail.com>
<CAKAnmmKGWxEGbvuBAxyDWmuije8agUHTY-82DR1VEkFM2vKNTg@mail.gmail.com>
<Z7za0Q9Yj5HDU-ye@nathan>
<CAMsGm5ePTEVkzreF957TT7L2RapyfJ=fPAw-OoZ7+JQbWTvXSw@mail.gmail.com>
<Z7ziHYjYGeD8DPzh@nathan>
<CAKAnmmLPmt_=tC_KsPMV1W2qGmgyLTx47bAKmh1RQhofhNZcLQ@mail.gmail.com>
On Mon, Feb 24, 2025 at 04:20:44PM -0500, Greg Sabino Mullane wrote:
> On Mon, Feb 24, 2025 at 4:18 PM Nathan Bossart <nathandbossart@gmail.com>
> wrote:
>> Well, the discussion upthread suggests "disallowing plain text passwords
>> completely"
>
> Yeah, that's more of a long-term dream than a real plan. It would certainly
> be no sooner than Postgres v24 or so...
I noticed a nearby thread [0] in which there appears to be some budding
support for a GUC that disables sending passwords to the server in
clear-text, at least for CREATE/ALTER ROLE. Perhaps we just add that for
now. (I'm probably well over my quota for new GUCs in v18...)
IMHO a WARNING would really only be appropriate if we are definitely going
to remove support in the future, and that feels like a bit of a stretch to
me due to the level of breakage it could cause. That being said, folks did
seem on board enough with deprecating MD5 passwords for me to feel
comfortable committing it, although that might not quite be an
apples-to-apples comparison. In any case, we've long encouraged folks to
avoid sending passwords to the server in clear-text, so I think it's
reasonable to provide some way to enforce that server-side.
[0] https://postgr.es/m/3136308.1740155121%40sss.pgh.pa.us
--
nathan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: nathandbossart@gmail.com, htamfids@gmail.com, isaac.morland@gmail.com, aleksander@timescale.com
Subject: Re: PATCH: warn about, and deprecate, clear text passwords
In-Reply-To: <Z73jBpWlBEuvLjEj@nathan>
References: <CAKAnmmJcXyLeBUJfqCx+-gRmkooDPnH7OmM4o=2HJRXzbMkP_g@mail.gmail.com> <CAJ7c6TP=nGgMhzrNgT8uzqaQj_nkT6HkYNgUyYcDqaL3R8dGog@mail.gmail.com> <CAKAnmmKGWxEGbvuBAxyDWmuije8agUHTY-82DR1VEkFM2vKNTg@mail.gmail.com> <Z7za0Q9Yj5HDU-ye@nathan> <CAMsGm5ePTEVkzreF957TT7L2RapyfJ=fPAw-OoZ7+JQbWTvXSw@mail.gmail.com> <Z7ziHYjYGeD8DPzh@nathan> <CAKAnmmLPmt_=tC_KsPMV1W2qGmgyLTx47bAKmh1RQhofhNZcLQ@mail.gmail.com> <Z73jBpWlBEuvLjEj@nathan>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox