model-writtenrun 4131 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Shaun Thomas reported that trust connections omit the log entry identifying the matching pg_hba.conf rule, making unexpected trust access harder to audit, and proposed logging that information independently of authentication identity #1.
- Michael Paquier questioned the security framing because modifying pg_hba.conf already requires privileged access, while Jacob Champion argued that additional audit logging should preserve the distinction between authentication identity and trust authorization, including NULL SYSTEM_USER for trust connections #2 #3.
- Jacob Champion supplied a generic fallback log for successful connections without an authentication identity, rather than special-casing trust, because his proposed OAuth method could also omit that identity #6.
- Stephen Frost warned that "connection not authenticated" could suggest a rejected connection and proposed "connection bypassed authentication", which Jacob Champion adopted in the next patch and its tests #7 #9 #10.
- Robert Haas advocated "connection authenticated: ... method=trust" for consistency with existing terminology, Stephen Frost accepted that wording, and Michael Paquier incorporated it while preserving the unset authentication identity and updating two SSL tests; Michael explicitly ruled out backpatching #11 #12 #13 #14.
- Robert Haas proposed a clearer explanation of the fallback logging, Jacob Champion identified an obsolete password-test comment, and Michael Paquier incorporated those changes and removed corresponding SSL-test comments in the final attachment #15 #16 #18.
- Jacob Champion approved the final patch while maintaining that distinguishing anonymous connections would help auditors; discussion of renaming, restricting, or removing trust remained outside this change, with Isaac Morland and Michael Paquier emphasizing its development and benchmarking uses #18 #19 #20 #21.
- Michael Paquier committed the final attachment with light formatting and redundant-parenthesis cleanup as e48b19c5db, crediting Jacob Champion as author and Robert Haas and Michael as reviewers; his final message confirms the patch was applied, leaving no attached work pending #18 #22.