model-writtenrun 2210 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Chris Gooch reported that users belonging to many Active Directory groups could not authenticate, and Tom Lane traced the misleading GSSAPI error to libpq rejecting authentication tokens larger than its 16 KiB buffer #1 #2.
- Jacob Champion proposed accepting larger authentication packets, and Tom agreed that failures against older receivers would affect cases that already failed; both distinguished this from changing normal data packet sizes, which would break working cross-version connections #3 #4 #7.
- Jacob suggested a configurable incoming token limit, but Tom preferred a fixed 128 KiB authentication buffer with no configuration setting; Nico Williams subsequently clarified that the underlying Kerberos protocol can accommodate much larger tickets #6 #7 #12.
- Tom supplied patches for all supported branches that allocate larger buffers during authentication and replace them with 16 KiB buffers afterward, consolidate the normal packet-size constants, standardize header accounting, and replace the misleading error with an explicit oversized-packet report #10 #11.
- Tom reported running the Kerberos regression test and requested real-world and mixed-version testing; Chris tested patched and unpatched client/server combinations on PostgreSQL 17 and reported expected behavior #14 #15 #16.
- Jacob objected to allowing larger tokens with GSS encryption than with other authentication transports and questioned header accounting; Tom explained the compatibility constraint, then supplied a delta reducing the authentication limit to 64 KiB and documenting that the limits include the header #17 #18 #19 #22.
- Jacob approved the revised code but could not make the automated Kerberos tests generate sufficiently large tickets; Chris clarified that a patched client with an oversized ticket fell back to password authentication when an unpatched server rejected it #25 #26.
- Tom committed the original patches plus the final delta without further code changes as c81cdffa1f, backpatched through PostgreSQL 13, and closed the thread by confirming that the fallback was expected and Chris's testing was sufficient, leaving automated large-ticket coverage for future work #11 #22 #27.