Re: Running untrusted sql safely?

From: Christophe <xof(at)thebuild(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Running untrusted sql safely?
Date: 2009-02-15 23:39:04
Message-ID: 095118EA-875D-4EA0-9601-314F32EFE195@thebuild.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Feb 15, 2009, at 2:47 PM, Stuart McGraw wrote:

> I just hoping for some confirmation that the permissions based
> approach did not have some holes in it that I am
> not seeing.

Another possibility is to create a set of functions that contain the
query operations you would like to allow, isolate those in a schema,
and make that schema the only thing accessible to the (semi-)trusted
users.

Generally, I try to design things so that web servers and other
clients who could potentially be compromised don't execute full-
function SQL directly, but go through functions instead.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2009-02-15 23:51:39 Re: Attempting to connect
Previous Message Bob Pawley 2009-02-15 23:34:08 Re: Attempting to connect