pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <scott.marlowe@gmail.com>
To: Christophe <xof@thebuild.com>
Cc: Postgres General List <pgsql-general@postgresql.org>
Subject: Re: Oracle and Postgresql
Date: Mon, 15 Sep 2008 14:15:54 -0600
Message-ID: <dcc563d10809151315g4aef389awd94b21c79f3daa3a@mail.gmail.com> (raw)
In-Reply-To: <39BD8B2C-9457-4791-89C7-9D5AF240C2D0@thebuild.com>
References: <41c1fa08-86a0-4023-acaa-d838d5b0abf8@i24g2000prf.googlegroups.com>
	<819df3760809131924o4ec38ebetfde7cd890767b1a9@mail.gmail.com>
	<1A6E6D554222284AB25ABE3229A9276201A1993B@nrtexcus702.int.asurion.com>
	<20080915135847.GF3666@fetter.org>
	<7be3f35d0809150731k575bf7aajc689a4278176b1a8@mail.gmail.com>
	<000001c91748$af9288b0$0eb79a10$@com>
	<20080915170608.GO3666@fetter.org>
	<1A6E6D554222284AB25ABE3229A9276201A19952@nrtexcus702.int.asurion.com>
	<dcc563d10809151256g1f60ccc9y7b207fbe7956e21b@mail.gmail.com>
	<39BD8B2C-9457-4791-89C7-9D5AF240C2D0@thebuild.com>

On Mon, Sep 15, 2008 at 2:04 PM, Christophe <xof@thebuild.com> wrote:
>
> On Sep 15, 2008, at 12:56 PM, Scott Marlowe wrote:
>>
>> I could totally get behind needing permission to see the plpgsql code.
>
> :)

I wasn't kidding up there.  Setting view permissions on plpgsql (or
any pl code really) would be understandable.  If you're not a super
user or the owner, you need permission to see it.

> More seriously, this is the issue with code-encryption on an open source
> platform: Where do you keep the key?  From my (admittedly brief) research,
> it appears that Oracle bakes it into the server binary, which isn't going to
> work for PG.  It sounds like a separate, binary-only plug-in that takes the
> encrypted procedure, decrypts it, and passes it on to PL/pgSQL for execution
> is the best bet, if this is really a critical feature for someone.

But whether it's oracle or postgresql, this is just security through
obscurity. If you have root access on the server either method would
be trivial to hack.  anyone who's used a debugger with stop points
could hack the binary only oracle or postgresql.

A lot of people think binary only is some kind of magic pixie dust
that keeps people from seeing what the code's doing.  modern
disassemblers and debuggers make figuring out binaries pretty simple.

My point being that encrypting plsql or plpgsql is really just smoke
and mirrors.



view thread (109+ messages)  latest in thread

Message-ID: <dcc563d10809151315g4aef389awd94b21c79f3daa3a@mail.gmail.com>
Permalink:  ../dcc563d10809151315g4aef389awd94b21c79f3daa3a@mail.gmail.com/
Also on:    postgresql.org/message-id/dcc563d10809151315g4aef389awd94b21c79f3daa3a@mail.gmail.com

 · 

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-general@postgresql.org
  Cc: scott.marlowe@gmail.com, xof@thebuild.com
  Subject: Re: Oracle and Postgresql
  In-Reply-To: <dcc563d10809151315g4aef389awd94b21c79f3daa3a@mail.gmail.com>
  References: <41c1fa08-86a0-4023-acaa-d838d5b0abf8@i24g2000prf.googlegroups.com> <819df3760809131924o4ec38ebetfde7cd890767b1a9@mail.gmail.com> <1A6E6D554222284AB25ABE3229A9276201A1993B@nrtexcus702.int.asurion.com> <20080915135847.GF3666@fetter.org> <7be3f35d0809150731k575bf7aajc689a4278176b1a8@mail.gmail.com> <000001c91748$af9288b0$0eb79a10$@com> <20080915170608.GO3666@fetter.org> <1A6E6D554222284AB25ABE3229A9276201A19952@nrtexcus702.int.asurion.com> <dcc563d10809151256g1f60ccc9y7b207fbe7956e21b@mail.gmail.com> <39BD8B2C-9457-4791-89C7-9D5AF240C2D0@thebuild.com> <dcc563d10809151315g4aef389awd94b21c79f3daa3a@mail.gmail.com>

* 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