pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Enrico Weigelt <weigelt@metux.de>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: security via views
Date: Wed, 27 Apr 2005 17:52:02 +0200
Message-ID: <20050427155202.GA20043@nibiru.borg.metux.de> (raw)


Hi folks,

we've got a larger project with several subsystems, which should
run in their own security context / users. 

Most of the database access works over views and functions. 
For functions its possible to run them with separate privileges
than the calling user. But is this also possible with views ?
I've noticed that for views also GRANT is necessary (AFAIK a
view is nothing else than a table with appropriate RULEs). 
Does it work to grant some user access to his own view, but
not to the tables where the view works on ?


thx
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service

  phone:     +49 36207 519931         www:       http://www.metux.de/
  fax:       +49 36207 519932         email:     contact@metux.de
  cellphone: +49 174 7066481
---------------------------------------------------------------------
 -- DSL ab 0 Euro. -- statische IP -- UUCP -- Hosting -- Webshops --
---------------------------------------------------------------------



view thread (3+ messages)  latest in thread

Message-ID: <20050427155202.GA20043@nibiru.borg.metux.de>
Permalink:  ../20050427155202.GA20043@nibiru.borg.metux.de/
Also on:    postgresql.org/message-id/20050427155202.GA20043@nibiru.borg.metux.de

 · 

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: weigelt@metux.de
  Subject: Re: security via views
  In-Reply-To: <20050427155202.GA20043@nibiru.borg.metux.de>
  References: <20050427155202.GA20043@nibiru.borg.metux.de>

* 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