Files
cozystack/pkg
IvanHunters b4f2f13ce3 feat(credentials): tell whether a legacy password survives login
PostgreSQL applies SASLprep to the presented password at login, and
ALTER ROLE ... PASSWORD did the same when it stored the old verifier, so
a SCRAM verifier built from the raw bytes of a legacy password silently
fails to authenticate any password SASLprep changes, such as one
carrying a soft hyphen. CarriesOver tells the conversion which passwords
it may keep, so the rest are left to their first mint.

pg_saslprep returns every all-ASCII input unchanged through its
pg_is_ascii fast path before the prohibited-character step runs, so an
all-ASCII password, ASCII controls included, carries over. Every format
other than scram-sha-256 stores or hashes the raw bytes and always
carries over.

Assisted-by: LLM
Signed-off-by: IvanHunters <xorokhotnikov@gmail.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
2026-11-30 18:21:13 +01:00
..
2026-11-24 23:06:02 +01:00