pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Gill <mgill@pointdx.com>
To: pgsql-admin@postgresql.org
Subject: Restrict access to system tables
Date: Wed, 17 Dec 2003 20:30:16 +0500
Message-ID: <3FE07688.1010006@pointdx.com> (raw)

Please pardon the novice question, but I can't find my answer in my 
books or the docs.

I want to keep as much data and table structure hidden from users as 
possible. I have created a function to return data (using 'security 
definer') and revoked all rights to a table for a user. This user can 
now execute the function but not query the table directly... Great.

BUT this same user can use PgAdmin III or psql to view the "schema" -- 
everything except seeing the data.

Anyone have a suggestion as to how to limit a given user (a group 
preferably) to only executing functions created by an administrator????

Thanks




Message-ID: <3FE07688.1010006@pointdx.com>
Permalink:  ../3FE07688.1010006@pointdx.com/
Also on:    postgresql.org/message-id/3FE07688.1010006@pointdx.com

 · 

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: mgill@pointdx.com
  Subject: Re: Restrict access to system tables
  In-Reply-To: <3FE07688.1010006@pointdx.com>
  References: <3FE07688.1010006@pointdx.com>

* 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