Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[GENERAL] How psql source code can be protected?

1 view
Skip to first unread message

Marius Pitigoi

unread,
Jan 6, 2010, 11:09:06 AM1/6/10
to
Hello,

Is there a way to protect psql source code? For example oracle has wrap utility.
I want to deploy my DB on a hosting company server. But they can see my functions code (they have root privileges) and this is what I want to avoid.

Thank you in advance,
Marius Pitigoi

Raymond O'Donnell

unread,
Jan 6, 2010, 12:59:31 PM1/6/10
to
On 06/01/2010 16:09, Marius Pitigoi wrote:
> Hello,
>
> Is there a way to protect psql source code? For example oracle has wrap
> utility.
> I want to deploy my DB on a hosting company server. But they can see my
> functions code (they have root privileges) and this is what I want to
> avoid.

I don't think there's any way of doing this. There's been a good bit of
discussion of this topic in the past - see the archives.

In any case, since your hosting people have root privileges, there
probably isn't much you can do.... :-)

Ray.


--
Raymond O'Donnell :: Galway :: Ireland
r...@iol.ie

--
Sent via pgsql-general mailing list (pgsql-...@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Erik Jones

unread,
Jan 6, 2010, 1:11:17 PM1/6/10
to

On Jan 6, 2010, at 8:09 AM, Marius Pitigoi wrote:

> Hello,
>
> Is there a way to protect psql source code? For example oracle has wrap utility.
> I want to deploy my DB on a hosting company server. But they can see my functions code (they have root privileges) and this is what I want to avoid.

If you don't trust your hosting company then why are you doing business with them?

Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k

Scott Marlowe

unread,
Jan 6, 2010, 3:11:12 PM1/6/10
to
On Wed, Jan 6, 2010 at 11:11 AM, Erik Jones <ejo...@engineyard.com> wrote:
>
> On Jan 6, 2010, at 8:09 AM, Marius Pitigoi wrote:
>
>> Hello,
>>
>> Is there a way to protect psql source code? For example oracle has wrap utility.
>> I want to deploy my DB on a hosting company server. But they can see my functions code (they have root privileges) and this is what I want to avoid.
>
> If you don't trust your hosting company then why are you doing business with them?

This+++++

Joshua D. Drake

unread,
Jan 6, 2010, 3:13:45 PM1/6/10
to
On Wed, 2010-01-06 at 13:11 -0700, Scott Marlowe wrote:
> On Wed, Jan 6, 2010 at 11:11 AM, Erik Jones <ejo...@engineyard.com> wrote:
> >
> > On Jan 6, 2010, at 8:09 AM, Marius Pitigoi wrote:
> >
> >> Hello,
> >>
> >> Is there a way to protect psql source code? For example oracle has wrap utility.
> >> I want to deploy my DB on a hosting company server. But they can see my functions code (they have root privileges) and this is what I want to avoid.
> >
> > If you don't trust your hosting company then why are you doing business with them?
>
> This+++++
>

Bingo...

Joshua D. Drake

--
PostgreSQL.org Major Contributor
Command Prompt, Inc: http://www.commandprompt.com/ - 503.667.4564
Consulting, Training, Support, Custom Development, Engineering
Respect is earned, not gained through arbitrary and repetitive use or Mr. or Sir.

David Fetter

unread,
Jan 6, 2010, 9:38:00 PM1/6/10
to
On Wed, Jan 06, 2010 at 05:09:06PM +0100, Marius Pitigoi wrote:
> Hello,
>
> Is there a way to protect psql source code? For example oracle has
> wrap utility. I want to deploy my DB on a hosting company server.
> But they can see my functions code (they have root privileges) and
> this is what I want to avoid.

The appropriate place to protect your IP is in legal agreements.

Cheers,
David.
--
David Fetter <da...@fetter.org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david....@gmail.com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

Merlin Moncure

unread,
Jan 7, 2010, 8:18:18 AM1/7/10
to
On Wed, Jan 6, 2010 at 11:09 AM, Marius Pitigoi
<marius....@gmail.com> wrote:
> Hello,
>
> Is there a way to protect psql source code? For example oracle has wrap
> utility.
> I want to deploy my DB on a hosting company server. But they can see my
> functions code (they have root privileges) and this is what I want to avoid.

It's impossible to do this if the company has access to the database
superuser account. If they have root access on the box there is no
real effective way from keeping them from using that account (your
main line of defense is pg_hba.conf which they can simply adjust).

If you limit them to a restricted account you can prevent casual
browsing of your procedure code by revoking select access from pg_proc
from that account and 'public'.

merlin

0 new messages