pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Drouvot, Bertrand <bdrouvot@amazon.com>
To: Jacob Champion <jchampion@timescale.com>
To: Joe Conway <mail@joeconway.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: SYSTEM_USER reserved word implementation
Date: Thu, 23 Jun 2022 10:06:43 +0200
Message-ID: <ec5bd135-25a2-9cac-3f67-1a7dae2cbff3@amazon.com> (raw)
In-Reply-To: <CAAWbhmj=zsgBac593B4RdHTNVVNUFedgQ2CH-h9STD7USSMqTw@mail.gmail.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>

Hi,

On 6/22/22 5:35 PM, Jacob Champion wrote:
> On Wed, Jun 22, 2022 at 8:10 AM Joe Conway <mail@joeconway.com> wrote:
>> On the contrary, I would argue that not having the identifier for the
>> external "user" available is a security concern. Ideally you want to be
>> able to trace actions inside Postgres to the actual user that invoked them.
> If auditing is also the use case for SYSTEM_USER, you'll probably want
> to review the arguments for making it available to parallel workers
> that were made in the other thread [1].

Thanks Jacob for your feedback.

I did some testing initially around the parallel workers and did not see 
any issues at that time.

I just had another look and I agree that the parallel workers case needs 
to be addressed.

I'll have a closer look to what you have done in [1].

Thanks

Bertrand

[1]https://www.postgresql.org/message-id/flat/793d990837ae5c06a558d58d62de9378ab525d83.camel%40vmware.c...






view thread (42+ messages)  latest in thread

Message-ID: <ec5bd135-25a2-9cac-3f67-1a7dae2cbff3@amazon.com>
Permalink:  ../ec5bd135-25a2-9cac-3f67-1a7dae2cbff3@amazon.com/
Also on:    postgresql.org/message-id/ec5bd135-25a2-9cac-3f67-1a7dae2cbff3@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, jchampion@timescale.com, mail@joeconway.com, tgl@sss.pgh.pa.us
  Subject: Re: SYSTEM_USER reserved word implementation
  In-Reply-To: <ec5bd135-25a2-9cac-3f67-1a7dae2cbff3@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> <ec5bd135-25a2-9cac-3f67-1a7dae2cbff3@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