Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YxcTi-0000OR-Pw for pgsql-hackers@arkaria.postgresql.org; Wed, 27 May 2015 14:38:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YxcTh-0003F0-T3 for pgsql-hackers@arkaria.postgresql.org; Wed, 27 May 2015 14:38:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YxcTg-0003Et-8Q for pgsql-hackers@postgreSQL.org; Wed, 27 May 2015 14:38:40 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1YxcTc-0001RR-IF for pgsql-hackers@postgreSQL.org; Wed, 27 May 2015 14:38:39 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 8BDE85F7A5; Wed, 27 May 2015 10:38:35 -0400 (EDT) Date: Wed, 27 May 2015 10:38:35 -0400 From: Stephen Frost To: Noah Misch Cc: Tom Lane , pgsql-hackers@postgreSQL.org Subject: Re: [COMMITTERS] pgsql: Add pg_audit, an auditing extension Message-ID: <20150527143835.GJ26667@tamriel.snowman.net> References: <4844.1431621244@sss.pgh.pa.us> <20150514163551.GB30322@tamriel.snowman.net> <5043.1431621669@sss.pgh.pa.us> <20150514164330.GD30322@tamriel.snowman.net> <5654.1431623278@sss.pgh.pa.us> <20150514171101.GG30322@tamriel.snowman.net> <6454.1431625129@sss.pgh.pa.us> <20150521053500.GB3934913@tornado.leadboat.com> <20150527001004.GD26667@tamriel.snowman.net> <20150527135143.GA4086095@tornado.leadboat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="l5hVVCNEZKTj3LCX" Content-Disposition: inline In-Reply-To: <20150527135143.GA4086095@tornado.leadboat.com> 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: 09:52:34 up 68 days, 19:41, 19 users, load average: 0.23, 0.14, 0.14 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-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org --l5hVVCNEZKTj3LCX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Noah Misch (noah@leadboat.com) wrote: > The test case demonstrated a hole in GRANT auditing, and your diagnosis is > incorrect. GRANT statements aren't subject to event triggers. Selecting= DDL > too, with pg_audit.log=3Dall, does not audit the GRANT substatement. GRANT statements are subject to event triggers in the most recent code- see ExecGrantStmt_oids, src/backend/catalog/aclchk.c:592 and EventTriggerCollectGrant(), src/backend/commands/event_trigger.c:1822. Perhaps I've missed something in my analysis, but I don't believe you're correct. I can certainly understand the confusion as GRANT statement which are granting *roles* are not subject to event triggers, as they are shared objects and therefore outside the scope of what event triggers support, but they are also not supported by the CREATE SCHEMA command. > pg_audit already has enough demonstrated bugs to be the most defective co= mmit > I have ever studied. Its defect level, routine for a mere Ready for Comm= itter > patch, is unprecedented among committed work. If that fails to astonish,= look > at you continuing to _defend pg_audit's integrity_: I truely hope you're able to review more patches. I certainly would appreciate any further insight you can give me on issues beyond the three which you found. > > I don't believe that this module is particularly more bug-ridden than > > other contrib modules or even parts of core. >=20 > Your negligence with respect to this commit calls into question every one= of > your past commits and anything you might commit for years to come. I stand by the commits that I've made. There have been ones I've reverted, ones that I've realized were a mistake and have subsequently apologized for and worked to address, and others. I am certainly not above question, nor do I feel that I'm any more able to commit bugless patches than the next committer. I look forward to reviews of my past and future commits. > > I certainly welcome review from others and if there is not another > > committer-level formal review before we get close on 9.5 (say, end of > > August), then I'll revert it. There is certainly no concern that doing > > so would be difficult to do, as it is entirely self-contained. >=20 > Not good enough. I need those would-be reviewers' help reviewing ~100 ot= her > sfrost commits before 9.5 final. It was my understanding that we do not direct what committers or reviewers work on. Still, I encourage you to do so and, further, to review the work authored by myself and committed by others, along with the work I've done for pginfra. All-in-all, this ~1800 line contrib module strikes me as a relatively modest amount of work relative to the role system and RLS. I'm already planning to put resources (beyond myself) into review of what's been committed to 9.5 over the next few months, including commits that I've made, but more eyes are certainly welcome. To be clear, I'm not saying that I will not revert this, but I am trying to respond to the concerns raised in the best possible way that I can. I had been hoping that there would be some attempt to explain to me why you feel that the module is bug ridden and the worst commit you've ever seen. I can certainly understand concern with the GRANT-based design, or with ereport() being used for the audit log and how those aren't ideal and I could respect an argument being made that it's not acceptable for us to provide even a contrib module which uses that approach, but this attack is certainly not what I was expecting nor do I feel it's appropriate for this community. Thanks! Stephen --l5hVVCNEZKTj3LCX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJVZdbrAAoJEO1sijiDR2RVS0EP/24zBLYNbQAoJOhRNnAo7aCF /aAUIsj2CeCHDOYGMg0tVlTCzlrV+tJWAW3AyHDd3bvc3eS2nLsA0tWVWPso/3DJ WFxeBsU1JXLmG381qlG+PI2U4zxidK9YrdWcd2CScY4p7aDcJ4pP06M2DCn/igVD 8jXGKZ1VoQCl05s7mSA4raYVg16X5P9mOhoaGoBz4A47TDY+CmS615bcteG7693+ RDXOGkVlkAp3bUXtxnTHFB+Y4SxrGhfY3VHmHZWzamitVJLNX97o7O8EFtY65uxb yrS9C5Ftz/Hejx1b+IlOtBTGB3XWL3htVsz9syJcj6FvHRe5owCqToN0ZddDoz3a +dmDOBuzX1s7Nk3aB9rbPYI0dz0V2PSMn3+K0jELiedmFeAlIikypq2K9xsWZBqO jvGjObwkRCVNr6pUClJSqFlzClR1LjdrQ3oLbIw0a7ljNq5OQGW/5EAuK0kaY4qK JqffyPI+/ylIlfjroHs7qM/Mt5BY34Wvy7HOXuBB+4IdxemmFvIIeXLHvViOyu6H X/1xKk8hXl3KJ3onBDIaYJ1UdNfEbijeoeFOg40LbcpqW4E3ejPFQ6y8uhvy842W HmQrZyaKmpGvQ+WOUe20a1gzWsab7iRVNdyVBSr0YnMRy7o5AB2U9zZP1ggmbko2 AUnB6bz1cvZxwqiaNOiT =DWsQ -----END PGP SIGNATURE----- --l5hVVCNEZKTj3LCX--