Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 520BD64FCFF for ; Mon, 15 Sep 2008 21:29:30 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 81899-07 for ; Mon, 15 Sep 2008 21:29:26 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mx00.pub.collaborativefusion.com (mx00.pub.collaborativefusion.com [206.210.89.199]) by postgresql.org (Postfix) with ESMTP id E756064FCEF for ; Mon, 15 Sep 2008 21:29:26 -0300 (ADT) Received: from working (198-144-37-131.static.vdsl.nidhog.net [198.144.37.131]) (AUTH: LOGIN wmoran, SSL: TLSv1/SSLv3,256bits,AES256-SHA) by wingspan with esmtp; Mon, 15 Sep 2008 20:29:24 -0400 id 00056405.0000000048CEFDE4.00006FCB Date: Mon, 15 Sep 2008 20:29:22 -0400 From: Bill Moran To: Greg Smith Cc: Jonathan Bond-Caron , "'Postgres General List'" Subject: Obfuscated stored procedures (was Re: Oracle and Postgresql) Message-Id: <20080915202922.1778a062.wmoran@collaborativefusion.com> In-Reply-To: References: <41c1fa08-86a0-4023-acaa-d838d5b0abf8@i24g2000prf.googlegroups.com> <48BB040E.3040108@earlham.edu> <48C5C394.1070602@gmail.com> <819df3760809131924o4ec38ebetfde7cd890767b1a9@mail.gmail.com> <1A6E6D554222284AB25ABE3229A9276201A1993B@nrtexcus702.int.asurion.com> <20080915135847.GF3666@fetter.org> <7be3f35d0809150731k575bf7aajc689a4278176b1a8@mail.gmail.com> <000001c91748$af9288b0$0eb79a10$@com> Organization: Collaborative Fusion Inc. X-Mailer: Sylpheed 2.5.0 (GTK+ 2.12.11; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/669 X-Sequence-Number: 137676 Greg Smith wrote: > > The problem here is that the PostgreSQL community is fully aware how bogus > any encryption method is and doesn't even bother, while Oracle is > perfectly happy selling a solution that is easily bypassed. Don't get me > wrong--the work involved is just difficult enough that I'm sure most > PL/SQL procedures are quite safe from being reversed, and what you get > back again will be kind of crummy code, so that's good enough for your > typical ISV. But the security doesn't stand up to simple scrutiny, and a > highly visible open-source project doing the same quality of > implementation would receive seriously bad press for releasing something > so shoddy. PostgreSQL would be compelled to name it something like > "half-assed obfuscation" in order to make it clear just how limited the > protection actually is, and then you've kind of lost the sales pitch that > motivated the feature in the first place. I don't understand why this is so bloody difficult to implement: Extend SECURITY DEFINER to include allowing only the definer to read the code. What more than that needs to be done to have honest to goodness secure procedures? -- Bill Moran Collaborative Fusion Inc. wmoran@collaborativefusion.com Phone: 412-422-3463x4023