| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Nathan Bossart <nathandbossart(at)gmail(dot)com> |
| Cc: | Jakub Wartak <jakub(dot)wartak(at)enterprisedb(dot)com>, Anthony Sotolongo <asotolongo(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: passwordcheck: Make the user name check case-insensitive |
| Date: | 2026-11-25 19:24:38 |
| Message-ID: | 1306923.1795634678@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Nathan Bossart <nathandbossart(at)gmail(dot)com> writes:
> On Wed, Nov 25, 2026 at 02:48:18PM +0100, Jakub Wartak wrote:
>> Wouldn't it be better then to just deprecate it in PG20 release notes and
>> *not* compile by default (unless somebody enhances it greatly; modern
>> password rules are kind of like: minN chars + min A upper/lowercase
>> letters + min B numbers + some symbols).
> I think we are in a tricky position when it comes to this module. We claim
> it's intended as sample code, and approximately half of its documentation
> is warnings about its limitations, but it's apparently still rather
> well-used. So we kind of want people to stop using it, but many users will
> probably be unhappy with removing it.
> If we're not going to consider improvement requests for it, perhaps we
> should mark it deprecated but leave it around indefinitely. Else, I think
> we should be open to adding further configurability.
The fundamental problem I've got with it is that it's nearly a no-op
when presented with a pre-encrypted password, which one hopes is close
to 100% of the time in a well-run installation. To the extent that
people are presenting cleartext passwords so that the check does
something, I think they are suffering a net negative in security.
There's not anything we can do about that by messing with
passwordcheck itself.
So yeah, I'd really prefer to deprecate it. The functionality
could move into psql's \password command, perhaps.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Xnerv Wang | 2026-11-25 19:28:51 | Re: [PATCH] pg_input_is_valid() reuses the first type name inside a PL/pgSQL loop |
| Previous Message | Tomas Vondra | 2026-11-25 19:07:12 | Re: should we have a fast-path planning for OLTP starjoins? |