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: Track behavior of \1 in pg_ident.conf when quoted
Date: Tue, 17 Jan 2023 04:42:05 +0000
Message-ID: <E1pHdnQ-0044TA-M3@gemulon.postgresql.org> (raw)

Track behavior of \1 in pg_ident.conf when quoted

Entries of pg-user in pg_ident.conf that are quoted and include '\1'
allow a replacement from a subexpression in a system user regexp.  This
commit adds a test to track this behavior and a note in the
documentation, as it could be affected by the use of an AuthToken for
the pg-user in the IdentLines parsed.

This subject has come up in the discussion aimed at extending the
support of pg-user in ident entries for more patterns.

Author: Jelte Fennema
Discussion: https://postgr.es/m/CAGECzQRNow4MwkBjgPxywXdJU_K3a9+Pm78JB7De3yQwwkTDew@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0b717432ff13683f9d13f007dab1c3380cae2f0d

Modified Files
--------------
doc/src/sgml/client-auth.sgml         |  3 +++
src/test/authentication/t/003_peer.pl | 13 +++++++++++++
2 files changed, 16 insertions(+)



Message-ID: <E1pHdnQ-0044TA-M3@gemulon.postgresql.org>
Permalink:  ../E1pHdnQ-0044TA-M3@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pHdnQ-0044TA-M3@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Track behavior of \1 in pg_ident.conf when quoted
  In-Reply-To: <E1pHdnQ-0044TA-M3@gemulon.postgresql.org>
  References: <E1pHdnQ-0044TA-M3@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