pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Add pg_audit, an auditing extension
Date: Thu, 14 May 2015 12:10:32 -0400
Message-ID: <20150514161032.GA30322@tamriel.snowman.net> (raw)
In-Reply-To: <21368.1431618712@sss.pgh.pa.us>
References: <E1YsuFd-0007qf-Ml@gemulon.postgresql.org>
	<20150514144833.GW30322@tamriel.snowman.net>
	<20267.1431615541@sss.pgh.pa.us>
	<20150514150047.GX30322@tamriel.snowman.net>
	<20458.1431615970@sss.pgh.pa.us>
	<20150514154619.GY30322@tamriel.snowman.net>
	<21368.1431618712@sss.pgh.pa.us>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> Stephen Frost <sfrost@snowman.net> writes:
> > I've pushed a change which should clean it up by simply loading the
> > module after each reconnects is done, more-or-less simulating having it
> > be in shared_preload_libraries.  It also wasn't using the correct
> > database for reconnecting.
> 
> > I'll keep an eye on it.
> 
> Another thing that looks not amazingly well-thought-out about that
> regression test is that it creates a superuser role with a known name
> (and no password, not that adding a password would make it better).
> This seems like it's just asking for trouble, especially in installcheck
> scenarios where failure partway through would leave the superuser lying
> around ready to be exploited.  Do we *really* need that in the test?

I'm not sure that we need it..  It's certainly darn handy to have since
we're reconnecting to get the role attributes updated when the GUCs are
being changed and we need to be doing that as a superuser.  We certainly
create superuser login roles throughout the regression tests today,
including those in core (CREATE ROLE foreign_data_user LOGIN SUPERUSER;
for example).  I had thought the issues with having a superuser role in
the regression tests had been addressed by not allowing the socket to be
in a public spot and the other changes..

We don't currently drop the role though at the end though.

If we had the name of the role to reconnect as then I don't think we'd
need the "super" role, but we'd need to be able to reconnect as that
role too, to be able to flip back and forth between roles which are not
superusers and ones which are.

Will investigate that, suggestions certainly welcome.  Looks like
there's a more interesting issue that termite ran into.

	Thanks!

		Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (69+ messages)  latest in thread

Message-ID: <20150514161032.GA30322@tamriel.snowman.net>
Permalink:  ../20150514161032.GA30322@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20150514161032.GA30322@tamriel.snowman.net

 · 

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: sfrost@snowman.net, tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Add pg_audit, an auditing extension
  In-Reply-To: <20150514161032.GA30322@tamriel.snowman.net>
  References: <E1YsuFd-0007qf-Ml@gemulon.postgresql.org> <20150514144833.GW30322@tamriel.snowman.net> <20267.1431615541@sss.pgh.pa.us> <20150514150047.GX30322@tamriel.snowman.net> <20458.1431615970@sss.pgh.pa.us> <20150514154619.GY30322@tamriel.snowman.net> <21368.1431618712@sss.pgh.pa.us> <20150514161032.GA30322@tamriel.snowman.net>

* 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