From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joe Conway <mail@joeconway.com>
Cc: Jacob Champion <jchampion@timescale.com>
Cc: Drouvot, Bertrand <bdrouvot@amazon.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: SYSTEM_USER reserved word implementation
Date: Wed, 22 Jun 2022 12:28:43 -0400
Message-ID: <3523129.1655915323@sss.pgh.pa.us> (raw)
In-Reply-To: <d92c878c-ace0-6abe-b39f-c7cc45be2939@joeconway.com>
References: <7e692b8c-0b11-45db-1cad-3afc5b57409f@amazon.com>
<3338921.1655905757@sss.pgh.pa.us>
<28b4a9ef-5103-f117-99e1-99ae5a86a6e8@joeconway.com>
<3361134.1655909496@sss.pgh.pa.us>
<89d0577e-b9f8-4d8a-224d-b336a5fe08af@joeconway.com>
<CAAWbhmj=zsgBac593B4RdHTNVVNUFedgQ2CH-h9STD7USSMqTw@mail.gmail.com>
<3484653.1655913147@sss.pgh.pa.us>
<d92c878c-ace0-6abe-b39f-c7cc45be2939@joeconway.com>
Joe Conway <mail@joeconway.com> writes:
> On 6/22/22 11:52, Tom Lane wrote:
>> I think a case could be made for ONLY returning non-null when authn_id
>> represents some externally-verified identifier (OS user ID gotten via
>> peer identification, Kerberos principal, etc).
> But -1 on that.
> I think any time we have a non-null authn_id we should expose it. Are
> there examples of cases when we have authn_id but for some reason don't
> trust the value of it?
I'm more concerned about whether we have a consistent story about what
SYSTEM_USER means (another way of saying "what type is it"). If it's
just the same as SESSION_USER it doesn't seem like we've added much.
Maybe, instead of just being the raw user identifier, it should be
something like "auth_method:user_identifier" so that one can tell
what the identifier actually is and how it was verified.
regards, tom lane
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-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, mail@joeconway.com, jchampion@timescale.com, bdrouvot@amazon.com
Subject: Re: SYSTEM_USER reserved word implementation
In-Reply-To: <3523129.1655915323@sss.pgh.pa.us>
References: <7e692b8c-0b11-45db-1cad-3afc5b57409f@amazon.com> <3338921.1655905757@sss.pgh.pa.us> <28b4a9ef-5103-f117-99e1-99ae5a86a6e8@joeconway.com> <3361134.1655909496@sss.pgh.pa.us> <89d0577e-b9f8-4d8a-224d-b336a5fe08af@joeconway.com> <CAAWbhmj=zsgBac593B4RdHTNVVNUFedgQ2CH-h9STD7USSMqTw@mail.gmail.com> <3484653.1655913147@sss.pgh.pa.us> <d92c878c-ace0-6abe-b39f-c7cc45be2939@joeconway.com> <3523129.1655915323@sss.pgh.pa.us>
* 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