From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Add pg_audit, an auditing extension
Date: Thu, 14 May 2015 12:22:55 -0400
Message-ID: <4551.1431620575@sss.pgh.pa.us> (raw)
In-Reply-To: <20150514160147.GX2523@alvh.no-ip.org>
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>
<20150514160147.GX2523@alvh.no-ip.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> Tom Lane wrote:
>> 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).
> We create a lot of roles in other tests too; the foreign_data test is
> the only one that create a superuser role. While working on the tests
> for the DDL deparse thing, I had to create a script with a list of roles
> that all the tests use, and it's pretty amazing. I remember thinking at
> the time that it'd be better to initialize a number of standard roles in
> an initial step, and have them be used consistently in the tests that
> require them, rather than having create/drop everywhere.
It would definitely be better if the names were less randomly chosen and
hence less likely to conflict with existing role names in an installation.
I'm not sure why we don't insist that they should all start with "regress"
or similar, for instance.
But what I'm on about at the moment is that I think creating new
superusers is a bad idea from a security standpoint. It seems quite
unlikely that we *have* to do that for testing purposes.
Also, I notice that the pg_audit test fails to drop the roles it
created, even if it reaches the end successfully. That's just bad.
regards, tom lane
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
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: tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com, sfrost@snowman.net, pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Add pg_audit, an auditing extension
In-Reply-To: <4551.1431620575@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> <20150514160147.GX2523@alvh.no-ip.org> <4551.1431620575@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