pg.ddx.io pgsql-hackers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Drouvot, Bertrand <bdrouvot@amazon.com>
To: Joe Conway <mail@joeconway.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Jacob Champion <jchampion@timescale.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: SYSTEM_USER reserved word implementation
Date: Thu, 23 Jun 2022 09:53:39 +0200
Message-ID: <88295ad6-05b1-1d00-9985-6330be2c8a68@amazon.com> (raw)
In-Reply-To: <8dd72a01-a76b-8ebf-d9e7-f7d21dab0425@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>
<3523129.1655915323@sss.pgh.pa.us>
<8dd72a01-a76b-8ebf-d9e7-f7d21dab0425@joeconway.com>
Hi,
On 6/22/22 6:32 PM, Joe Conway wrote:
> CAUTION: This email originated from outside of the organization. Do
> not click links or open attachments unless you can confirm the sender
> and know the content is safe.
>
>
>
> On 6/22/22 12:28, Tom Lane wrote:
>> 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.
>
> Oh, that's an interesting thought -- I like that.
>
Thanks Joe and Tom for your feedback.
I like this idea too and that's also more aligned with what
log_connections set to on would report (aka the auth method).
Baring any objections, I'll work on that idea.
Bertrand
view thread (42+ messages) latest in thread
Message-ID: <88295ad6-05b1-1d00-9985-6330be2c8a68@amazon.com> Permalink: ../88295ad6-05b1-1d00-9985-6330be2c8a68@amazon.com/ Also on: postgresql.org/message-id/88295ad6-05b1-1d00-9985-6330be2c8a68@amazon.com ·
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-hackers@postgresql.org Cc: bdrouvot@amazon.com, mail@joeconway.com, tgl@sss.pgh.pa.us, jchampion@timescale.com Subject: Re: SYSTEM_USER reserved word implementation In-Reply-To: <88295ad6-05b1-1d00-9985-6330be2c8a68@amazon.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> <3523129.1655915323@sss.pgh.pa.us> <8dd72a01-a76b-8ebf-d9e7-f7d21dab0425@joeconway.com> <88295ad6-05b1-1d00-9985-6330be2c8a68@amazon.com> * 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