model-writtenrun 5834 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Paquier proposed pg_hmac_error() and propagation of detailed failures through SCRAM in #1, including underlying cryptohash errors for the fallback implementation and OpenSSL error reasons for the OpenSSL implementation.
- Michael argued in #1 against backpatching the functional changes because core HMAC callers use SHA-256 and the affected failures are unlikely, although non-core MD5 HMAC use with OpenSSL FIPS could benefit.
- Sergey Shinderuk questioned repetitive comment wording, the SSLerrmessage() naming, and error-string independence in #2; Michael accepted revised wording but retained the helper name and explained that different failures can reference different static strings in #3.
- Sergey noticed that the same wording problem already existed in cryptohash code in #4, leading to the separate comment correction 9a3d8e1886, which Michael reported applying to development and PostgreSQL 14 in #5.
- Michael described additional SASLprep and secret-building error fixes and resolution of an intervening libpq conflict in #5, then supplied the revised patch in #6, preserving the original architecture while reporting allocation and random-salt failures more accurately.
- Sergey reported a thorough reading of the revision and supplied corrections for missing errstr assignments in #7, explicitly noting that he had not tested it; the associated obsolete HMAC structure comments were corrected separately in 87f29f4fcc, credited to Sergey and backpatched to PostgreSQL 14.
- Michael completed an error-path audit, added missing allocation-failure details and SCRAM interface comments, and committed the revised implementation from #6 as 5513dc6a30 on the development branch only, announcing completion in #8.
- Sergey acknowledged completion in #9, leaving the proposed work landed with no outstanding revision requested.