Re: Running untrusted sql safely? - Mailing list pgsql-general

From Christophe
Subject Re: Running untrusted sql safely?
Date
Msg-id 095118EA-875D-4EA0-9601-314F32EFE195@thebuild.com
Whole thread Raw
In response to Re: Running untrusted sql safely?  (Stuart McGraw <smcg2297@frii.com>)
Responses Re: Running untrusted sql safely?
List 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.

pgsql-general by date:

Previous
From: "Bob Pawley"
Date:
Subject: Re: Attempting to connect
Next
From: Scott Marlowe
Date:
Subject: Re: Attempting to connect