pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Generate new LOG for "trust" connections under log_connections
Date: Sat, 26 Aug 2023 11:13:16 +0000
Message-ID: <E1qZrEB-0010DQ-OS@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e48b19c5db3185e1868391176fc040df08a149fb

Modified Files
--------------
src/backend/libpq/auth.c                  | 16 ++++++++++++++++
src/test/authentication/t/001_password.pl |  8 ++++----
src/test/ssl/t/001_ssltests.pl            |  8 ++++----
3 files changed, 24 insertions(+), 8 deletions(-)



Message-ID: <E1qZrEB-0010DQ-OS@gemulon.postgresql.org>
Permalink:  ../E1qZrEB-0010DQ-OS@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1qZrEB-0010DQ-OS@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Generate new LOG for "trust" connections under log_connections
  In-Reply-To: <E1qZrEB-0010DQ-OS@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox