model-writtenrun 4869 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Paquier proposed removing SCRAM's hardcoded SHA-256 assumptions by tracking hash type and key length in client and server state and dynamically allocating key buffers, reporting successful check-world and compatibility testing in #1.
- Peter Eisentraut argued that dynamic allocation added unnecessary complexity and recommended fixed-size arrays in #2; Michael agreed while retaining explicit hash parameters in #3, then submitted the simpler SCRAM_MAX_KEY_LEN design in #4.
- Jonathan S. Katz reviewed and tested the revised patch, supported its design, and requested comments explaining the SHA-256 assertions while noting the need to test smaller hashes against larger buffers in #5.
- Michael retained the assertions as reminders, added explanatory comments, and committed #4 as b3bb7d12af, announcing completion in #6.
- Michael then posted a separate SCRAM-SHA-512 experiment with new HBA methods and authentication tests in #7, reporting working matching and mismatching hash cases but leaving MD5 handling and client mechanism selection unfinished and planning separate follow-up threads.
- Jonathan proposed a generic scram HBA method with a configurable hash list and backward-compatible SHA-256 defaults in #8, offering an alternative to separate authentication methods for each hash.
- Michael suggested selecting advertised mechanisms from the stored password for MD5-configured authentication and having libpq prefer the strongest offered mechanism in #9, while leaving RFC checks and negotiation policy open; the refactor was committed, but SHA-512 support remained experimental.