Re: viewing source code

From: "Roberts, Jon" <Jon(dot)Roberts(at)asurion(dot)com>
To: 'Kris Jurka' <books(at)ejurka(dot)com>, Merlin Moncure <mmoncure(at)gmail(dot)com>
Cc: "Jonah H(dot) Harris" <jonah(dot)harris(at)gmail(dot)com>, Bill Moran <wmoran(at)collaborativefusion(dot)com>, "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: viewing source code
Date: 2007-12-18 16:05:46
Message-ID: 1A6E6D554222284AB25ABE3229A92762112A17@nrtexcus702.int.asurion.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

If we are talking about enhancement requests, I would propose we create a
role that can be granted/revoked that enables a user to see dictionary
objects like source code. Secondly, users should be able to see their own
code they write but not others unless they have been granted this dictionary
role.

Revoking pg_proc isn't good for users that shouldn't see other's code but
still need to be able to see their own code.

Jon
> -----Original Message-----
> From: Kris Jurka [mailto:books(at)ejurka(dot)com]
> Sent: Monday, December 17, 2007 10:51 PM
> To: Merlin Moncure
> Cc: Roberts, Jon; Jonah H. Harris; Bill Moran; Joshua D. Drake; pgsql-
> performance(at)postgresql(dot)org
> Subject: Re: [PERFORM] viewing source code
>
>
>
> On Mon, 17 Dec 2007, Merlin Moncure wrote:
>
> > 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.
> >
>
> Another enhancement that would improve this situation would be to
> implement per column permissions as the sql spec has, so that you could
> revoke select on just the prosrc column and allow clients to retrieve the
> metadata they need.
>
> Kris Jurka

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Alvaro Herrera 2007-12-18 18:26:49 Re: viewing source code
Previous Message Heikki Linnakangas 2007-12-18 09:23:10 Re: Evaluation of PG performance vs MSDE/MSSQL 2000 (not 2005)