Re: Proposal: Save user's original authenticated identity for logging
Jacob Champion <pchampion@vmware.com>
From: Jacob Champion <pchampion@vmware.com>
To: "michael@paquier.xyz" <michael@paquier.xyz>
Cc: "magnus@hagander.net" <magnus@hagander.net>, "stark@mit.edu" <stark@mit.edu>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>, "sfrost@snowman.net" <sfrost@snowman.net>, "tgl@sss.pgh.pa.us" <tgl@sss.pgh.pa.us>
Date: 2021-03-19T18:37:05Z
Lists: pgsql-hackers
Attachments
- v7-0001-test-kerberos-rotate-logs-between-tests.patch (text/x-patch) patch v7-0001
- v7-0002-ssl-store-client-s-DN-in-port-peer_dn.patch (text/x-patch) patch v7-0002
- v7-0003-Log-authenticated-identity-from-all-auth-backends.patch (text/x-patch) patch v7-0003
On Fri, 2021-03-19 at 16:54 +0000, Jacob Champion wrote: > One additional improvement I would suggest, now that the rotation logic > is simpler than it was in my original patch, is to rotate the logfile > regardless of whether the test is checking the logs or not. (Similarly, > we can manually rotate after the block of test_query() calls.) That way > it's harder to match the last test's output. The same effect can be had by moving the log rotation to the top of the test that needs it, so I've done it that way in v7. > The tradeoff is that if you need to check for log message order, or for > multiple instances of overlapping patterns, you still need some sort of > search-forward functionality. Turns out it's easy now to have our cake and eat it too; a single if statement can implement the same search-forward functionality that was spread across multiple places before. So I've done that too. Much nicer, thank you for the suggestion! --Jacob
Commits
-
Add missing $Test::Builder::Level settings
- 73aa5e0cafd0 15.0 landed
- e536a2683439 14.0 landed
-
Add some information about authenticated identity via log_connections
- 9afffcb833d3 14.0 landed
-
Fix some issues with SSL and Kerberos tests
- 5a71964a832f 14.0 landed
-
Refactor all TAP test suites doing connection checks
- c50624cdd248 14.0 landed