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: Store IdentLine->pg_user as an AuthToken
Date: Mon, 16 Jan 2023 04:59:00 +0000
Message-ID: <E1pHHaG-003trU-1n@gemulon.postgresql.org> (raw)

Store IdentLine->pg_user as an AuthToken

While system_user was stored as an AuthToken in IdentLine, pg_user was
stored as a plain string.  This commit changes the code as we start
storing pg_user as an AuthToken too.

This does not have any functional changes, as all the operations on
pg_user only use the string from the AuthToken.  There is no regexp
compiled and no check based on its quoting, yet.  This is in preparation
of more features that intend to extend its capabilities, like support
for regexps and group membership.

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/02d3448f4f792964995b8071fa07176606e1af85

Modified Files
--------------
src/backend/libpq/hba.c          | 20 +++++++++++---------
src/backend/utils/adt/hbafuncs.c |  2 +-
src/include/libpq/hba.h          |  2 +-
3 files changed, 13 insertions(+), 11 deletions(-)



Message-ID: <E1pHHaG-003trU-1n@gemulon.postgresql.org>
Permalink:  ../E1pHHaG-003trU-1n@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pHHaG-003trU-1n@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: Store IdentLine->pg_user as an AuthToken
  In-Reply-To: <E1pHHaG-003trU-1n@gemulon.postgresql.org>
  References: <E1pHHaG-003trU-1n@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