pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ian FREISLICH <if@hetzner.co.za>
To: pgsql-admin@postgresql.org
Subject: Preventing the schema from being revealed.
Date: Wed, 06 Apr 2005 07:54:03 +0200
Message-ID: <20050406055405.C4AF6534FA@svr1.postgresql.org> (raw)

Hi

I have quite a complex database system and I want to expose a public
interface to it without exposing my (and my company's) months of
work.

Is there a way to grant usage on a schema so that they can execute
functions without allowing that user to view the structure of the
database and the definitions of all the functions.

Or is the only way to put wrapper functions in the public schema
that are defined 'SECURITY DEFINER' so that they can execute functions
in the api schema, that the public user does not have access to?

I wouldn't mind them viewing the wrapper functions.

--
Ian Freislich



Message-ID: <20050406055405.C4AF6534FA@svr1.postgresql.org>
Permalink:  ../20050406055405.C4AF6534FA@svr1.postgresql.org/
Also on:    postgresql.org/message-id/20050406055405.C4AF6534FA@svr1.postgresql.org

 · 

reply

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-admin@postgresql.org
  Cc: if@hetzner.co.za
  Subject: Re: Preventing the schema from being revealed.
  In-Reply-To: <20050406055405.C4AF6534FA@svr1.postgresql.org>
  References: <20050406055405.C4AF6534FA@svr1.postgresql.org>

* 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