Generate new LOG for "trust" connections under log_connections
authorMichael Paquier <michael@paquier.xyz>
Sat, 26 Aug 2023 11:11:19 +0000 (20:11 +0900)
committerMichael Paquier <michael@paquier.xyz>
Sat, 26 Aug 2023 11:11:19 +0000 (20:11 +0900)
commite48b19c5db3185e1868391176fc040df08a149fb
tree629aab9d864bcf063743806f57df4fe0784ede9b
parent1a4fd77db85abac63e178506335aee74625f6499
Generate new LOG for "trust" connections under log_connections

Adding an extra LOG for connections that have not set an authn ID, like
when the "trust" authentication method is used, is useful for audit
purposes.

A couple of TAP tests for SSL and authentication need to be tweaked to
adapt to this new LOG generated, as some scenarios expected no logs but
they now get a hit.

Reported-by: Shaun Thomas
Author: Jacob Champion
Reviewed-by: Robert Haas, Michael Paquier
Discussion: https://postgr.es/m/CAFdbL1N7-GF-ZXKaB3XuGA+CkSmnjFvqb8hgjMnDfd+uhL2u-A@mail.gmail.com
src/backend/libpq/auth.c
src/test/authentication/t/001_password.pl
src/test/ssl/t/001_ssltests.pl