From: Merlin Moncure <mmoncure@gmail.com>
To: Roberts, Jon <Jon.Roberts@asurion.com>
Cc: Jonah H. Harris <jonah.harris@gmail.com>
Cc: Bill Moran <wmoran@collaborativefusion.com>
Cc: Joshua D. Drake <jd@commandprompt.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: viewing source code
Date: Mon, 17 Dec 2007 09:13:52 -0500
Message-ID: <b42b73150712170613y1bf9b208vdb3e48532ad16b66@mail.gmail.com> (raw)
In-Reply-To: <1A6E6D554222284AB25ABE3229A92762112A00@nrtexcus702.int.asurion.com>
References: <1A6E6D554222284AB25ABE3229A92762112A00@nrtexcus702.int.asurion.com>
On Dec 17, 2007 8:11 AM, Roberts, Jon <Jon.Roberts@asurion.com> wrote:
> Alvaro Herrera pointed out that pg_read_file requires superuser access which
> these users won't have so revoking access to the function code should be
> possible.
>
> Joshua D. Drake suggested revoking pg_proc but that isn't the source code,
> it just has the definition of the functions.
>
> If it isn't a feature today, what table has the source code in it? Maybe I
> can revoke that.
the table is pg_proc. you have to revoke select rights from public
and the user of interest. be aware this will make it very difficult
for that user to do certain things in psql and (especially) pgadmin.
it works.
a better solution to this problem is to make a language wrapper for
pl/pgsql that encrypts the source on disk. afaik, no one is working on
th is. it would secure the code from remote users but not necessarily
from people logged in to the server. the pg_proc hack works ok
though.
merlin
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-performance@postgresql.org
Cc: mmoncure@gmail.com, Jon.Roberts@asurion.com, jonah.harris@gmail.com, wmoran@collaborativefusion.com, jd@commandprompt.com
Subject: Re: viewing source code
In-Reply-To: <b42b73150712170613y1bf9b208vdb3e48532ad16b66@mail.gmail.com>
References: <1A6E6D554222284AB25ABE3229A92762112A00@nrtexcus702.int.asurion.com> <b42b73150712170613y1bf9b208vdb3e48532ad16b66@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