Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YsviX-0005Fp-Jq for pgsql-committers@arkaria.postgresql.org; Thu, 14 May 2015 16:10:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YsviX-0002tm-2z for pgsql-committers@arkaria.postgresql.org; Thu, 14 May 2015 16:10:37 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YsviV-0002rj-Qn for pgsql-committers@postgresql.org; Thu, 14 May 2015 16:10:35 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1YsviT-0001tr-94 for pgsql-committers@postgresql.org; Thu, 14 May 2015 16:10:34 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id B3B595F7A0; Thu, 14 May 2015 12:10:32 -0400 (EDT) Date: Thu, 14 May 2015 12:10:32 -0400 From: Stephen Frost To: Tom Lane Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Add pg_audit, an auditing extension Message-ID: <20150514161032.GA30322@tamriel.snowman.net> References: <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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nthFAjN0O4TvxwhX" Content-Disposition: inline In-Reply-To: <21368.1431618712@sss.pgh.pa.us> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-46-generic (x86_64) X-Uptime: 11:58:09 up 55 days, 21:46, 9 users, load average: 0.03, 0.13, 0.17 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org --nthFAjN0O4TvxwhX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Tom Lane (tgl@sss.pgh.pa.us) wrote: > Stephen Frost 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. >=20 > > I'll keep an eye on it. >=20 > 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 --nthFAjN0O4TvxwhX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJVVMj4AAoJEO1sijiDR2RVWcwQALnYPYRefODQEOu+JYSSc3h8 LAONC9GRg3y57l5p6x8GzdoTabgBejaRWeFzKGICNjYHum1uhOrImUrMRH+4JG1U hRsnnaoGup76KFGpj/OPn0LwTL4CtQZRWAxfQA2lmei+p87QMQuofwAF1MhpCRuD ZbwNdkZKkEA9pkPxfwjrNiqrh5Cqco0tHSbVKKrG2TbhdB9re2eL3zYwlswnzdtO TvPaLfbhVtjhA2ivcx3qCDCKMTfROHidw6o0eDk8rGGaiyaBdlwA2xcjsykMQXmo dnVWg8i3g1+Pl2WN0gjqLSt7d3GcyR4HvLKfdd52yxOpHBvvkdBoQ2FSXtUvmkoN JL4+UuJty0yeoEOcA4W5gL3f5U1BSFkaa0AxOODlTAac1Z8v6jV62PM/lvubJwUu njFkZ98EGI8IJdQRF6xvR+NQjUVtqj0JNwzNOsrdC57j46I0oAIdCPZgKlH8n3Bd qutqSk4HTsxU31rGktc94lJ2I49xgVxSBo0B1b6MyFu/VdAlu2nc1+fxtH27Fnmk Ce3AX2v+1LqjZ4Xa44OAc88Bu9FrjoszxzQp+0Dfb/vtp8Ax4juVu9B7PwMzTCiq w9cUullcR85PvnsUeyuGf8rD2a9ItlFoaVkSek0TGW6yCp0rwvz4QcrK/dGhRoN5 Er9JW1Nswe2fcEk1fd7o =hdUH -----END PGP SIGNATURE----- --nthFAjN0O4TvxwhX--