pgsql: Add GSS information to connection authorized log message

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add GSS information to connection authorized log message
Date: 2020-12-02 19:42:17
Message-ID: E1kkY13-0004jk-1z@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add GSS information to connection authorized log message

GSS information (if used) such as if the connection was authorized using
GSS or if it was encrypted using GSS, and perhaps most importantly, what
the GSS principal used for the authentication was, is extremely useful
but wasn't being included in the connection authorized log message.

Therefore, add to the connection authorized log message that
information, in a similar manner to how we log SSL information when SSL
is used for a connection.

Author: Vignesh C
Reviewed-by: Bharath Rupireddy
Discussion: https://www.postgresql.org/message-id/CALDaNm2N1385_Ltoo%3DS7VGT-ESu_bRQa-sC1wg6ikrM2L2Z49w%40mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/backend/utils/init/postinit.c | 82 ++++++++++----------------
src/test/kerberos/t/001_auth.pl | 118 +++++++++++++++++++++++++++-----------
2 files changed, 114 insertions(+), 86 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2020-12-03 01:13:35 pgsql: Refactor CLUSTER and REINDEX grammar to use DefElem for option l
Previous Message Fujii Masao 2020-12-02 04:04:57 pgsql: Track total number of WAL records, FPIs and bytes generated in t