pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: libpq: Trace frontend authentication challenges
Date: Mon, 12 Aug 2024 23:14:20 +0000
Message-ID: <E1sdeF2-003uSi-2M@gemulon.postgresql.org> (raw)

libpq: Trace frontend authentication challenges

If tracing was enabled during connection startup, these messages would
previously be listed in the trace output as something like this:

F       54      Unknown message: 70
mismatched message length: consumed 4, expected 54

With this commit their type and contents are now correctly listed:

F       36      StartupMessage   3 0 "user" "foo" "database" "alvherre"
F       54      SASLInitialResponse      "SCRAM-SHA-256" 32 'n,,n=,r=nq5zEPR/VREHEpOAZzH8Rujm'
F       108     SASLResponse     'c=biws,r=nq5zEPR/VREHEpOAZzH8RujmVtWZDQ8glcrvy9OMNw7ZqFUn,p=BBwAKe0WjSvigB6RsmmArAC+hwucLeuwJrR5C/HQD5M='

Author: Jelte Fennema-Nio <postgres@jeltef.nl>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/CAGECzQSoPHtZ4xe0raJ6FYSEiPPS+YWXBhOGo+Y1YecLgknF3g@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/interfaces/libpq/fe-auth.c   |  6 ++++
src/interfaces/libpq/fe-trace.c  | 69 ++++++++++++++++++++++++++++++++++++++++
src/interfaces/libpq/libpq-int.h | 16 +++++++++-
3 files changed, 90 insertions(+), 1 deletion(-)



Message-ID: <E1sdeF2-003uSi-2M@gemulon.postgresql.org>
Permalink:  ../E1sdeF2-003uSi-2M@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1sdeF2-003uSi-2M@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: alvherre@alvh.no-ip.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: libpq: Trace frontend authentication challenges
  In-Reply-To: <E1sdeF2-003uSi-2M@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