pgwire: path to supporting the md5 password authentication #73337
Labels
A-security
A-sql-pgwire
pgwire protocol issues.
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-server-and-security
DB Server & Security
X-anchored-telemetry
The issue number is anchored by telemetry references.
Suggested by @bdarnell in https://reviewable.io/reviews/cockroachdb/cockroach/72579#-MpDQFBW556WDFZOPJwW:-MplyXzV2tK4zGEmn4U8:b-ytyo6k
We could define a new storage format
BCRYPT-MD5
(i.e.bcrypt(cost, md5(password))
) and when the password is set using the input format password orMD5$hash
we could compute and store theBCRYPT-MD5
encoding. That would let us support the pgwiremd5
auth protocol in addition to plaintext (and as a bonus would be a first step to phasing out the hash-of-empty-string accident for new passwords).Jira issue: CRDB-11549
The text was updated successfully, but these errors were encountered: