Re: Oracle and Postgresql

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: Christophe <xof(at)thebuild(dot)com>
Cc: "Postgres General List" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Oracle and Postgresql
Date: 2008-09-15 20:15:54
Message-ID: dcc563d10809151315g4aef389awd94b21c79f3daa3a@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-www

On Mon, Sep 15, 2008 at 2:04 PM, Christophe <xof(at)thebuild(dot)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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Devrim GÜNDÜZ 2008-09-15 20:28:02 Re: Oracle and Postgresql
Previous Message Christophe 2008-09-15 20:04:59 Re: Oracle and Postgresql

Browse pgsql-www by date

  From Date Subject
Next Message Devrim GÜNDÜZ 2008-09-15 20:28:02 Re: Oracle and Postgresql
Previous Message Christophe 2008-09-15 20:04:59 Re: Oracle and Postgresql