pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Daniel Gustafsson <daniel@yesql.se>
Cc: Greg Nancarrow <gregn4422@gmail.com>
Cc: Ivan Panchenko <wao@mail.ru>
Cc: Teodor Sigaev <teodor@sigaev.ru>
Cc: Ibrar Ahmed <ibrar.ahmad@gmail.com>
Cc: vignesh C <vignesh21@gmail.com>
Cc: Pavel Stehule <pavel.stehule@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: Masahiko Sawada <sawada.mshk@gmail.com>
Subject: Re: On login trigger: take three
Date: Sun, 13 Mar 2022 20:35:44 -0400
Message-ID: <84640.1647218144@sss.pgh.pa.us> (raw)
In-Reply-To: <20220314000825.t7yywdubftb5cwl6@alap3.anarazel.de>
References: <CAJcOf-c=tx6+Dfo-MNmye6FjL958eNev0=Wo70Xa72t+degfig@mail.gmail.com>
	<8F2FC11D-F0B4-41F2-BA7F-BA7F84DBF493@yesql.se>
	<CAJcOf-cq9=f_hz9DXKFJBVNGK1C68XsxhKXYZ7PkzGgb=jDh7A@mail.gmail.com>
	<CAJcOf-efxjnZ2Wsj_W_=nF8o3t+F9NaG0Ja_af3cV7gMkhdFTQ@mail.gmail.com>
	<CAJcOf-cF2_oJtNSBPrb5i+pZnN552ZSLZ2ffoo2nLa6Fb_R6uQ@mail.gmail.com>
	<CAJcOf-ei2VTinDPO84w8YdkO-+-g6YLuUUxwBswW6QaFGdjRJQ@mail.gmail.com>
	<20220312024652.lvgehszwke4hhove@alap3.anarazel.de>
	<E0D5DC61-C490-45BD-A984-E8D56493EC4F@yesql.se>
	<20220313233350.mar5ix6cqmgaokta@alap3.anarazel.de>
	<81327.1647215828@sss.pgh.pa.us>
	<20220314000825.t7yywdubftb5cwl6@alap3.anarazel.de>

Andres Freund <andres@anarazel.de> writes:
> I was thinking that the way to use it would be to specify it as a client
> option. Like PGOPTIONS='-c ignore_event_trigger=login' psql.

Ugh ... that would allow people (at least superusers) to bypass
the login trigger at will, which seems to me to break a lot of
the use-cases for the feature.  I supposed we'd want this to be a
PGC_POSTMASTER setting for security reasons.

			regards, tom lane





view thread (171+ messages)  latest in thread

Message-ID: <84640.1647218144@sss.pgh.pa.us>
Permalink:  ../84640.1647218144@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/84640.1647218144@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, andres@anarazel.de, daniel@yesql.se, gregn4422@gmail.com, wao@mail.ru, teodor@sigaev.ru, ibrar.ahmad@gmail.com, vignesh21@gmail.com, pavel.stehule@gmail.com, amit.kapila16@gmail.com, sawada.mshk@gmail.com
  Subject: Re: On login trigger: take three
  In-Reply-To: <84640.1647218144@sss.pgh.pa.us>
  References: <CAJcOf-c=tx6+Dfo-MNmye6FjL958eNev0=Wo70Xa72t+degfig@mail.gmail.com> <8F2FC11D-F0B4-41F2-BA7F-BA7F84DBF493@yesql.se> <CAJcOf-cq9=f_hz9DXKFJBVNGK1C68XsxhKXYZ7PkzGgb=jDh7A@mail.gmail.com> <CAJcOf-efxjnZ2Wsj_W_=nF8o3t+F9NaG0Ja_af3cV7gMkhdFTQ@mail.gmail.com> <CAJcOf-cF2_oJtNSBPrb5i+pZnN552ZSLZ2ffoo2nLa6Fb_R6uQ@mail.gmail.com> <CAJcOf-ei2VTinDPO84w8YdkO-+-g6YLuUUxwBswW6QaFGdjRJQ@mail.gmail.com> <20220312024652.lvgehszwke4hhove@alap3.anarazel.de> <E0D5DC61-C490-45BD-A984-E8D56493EC4F@yesql.se> <20220313233350.mar5ix6cqmgaokta@alap3.anarazel.de> <81327.1647215828@sss.pgh.pa.us> <20220314000825.t7yywdubftb5cwl6@alap3.anarazel.de> <84640.1647218144@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