pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kyle Bateman <kyle@actarg.com>
To: wieck@debis.com
Cc: pgsql-sql@postgresql.org
Subject: References and privileges
Date: Wed, 07 Jun 2000 18:45:40 -0600
Message-ID: <393EECB4.49E68076@actarg.com> (raw)

wieck@debis.com (Jan Wieck) writes:
>> If one does:
>>
>> [...]
>> grant select on master to a_user;
>> grant select, insert, update, delete on detail to a_user;
>>
>> then if login as "a_user" and does:
>>
>> insert into detail (id, master_id) values (1, 10);
>>
>> this will result in: "ERROR:   master: Permission denied".
>>
>> This seems a bug to me ? Isn't it ?

> Outch,

>     yes,  we  missed  something  here.  Peter,  you  said  you'll
>     probably work  on  the  ACL  stuff  after  7.0.  We  need  to
>     coordinate that work with the function manager redesign to go
>     for SETUID triggers and functions.

Hey Jan:

This one just bit me hard.  We're trying to implement RI so a foreign
key (employee ID number) is verified to exist in the employee table.
Problem is, we have to grant everyone and their dog access to the
employee table (select,update, no less) which contains all kinds of
sensitive data about employees.

We even tried making a limited view of the employee table and
referencing that.  No luck, the RI triggers try to find an OID column in
the referenced table (view).  If we could name a column "oid" in a view,
we might have a chance with this approach.

How hard would it be to get the "grant references" thing going?  Is
there anything I could do to help?

Grant permissions on columns would also solve this problem.  Is that one
huge or not so huge?

Kyle

Attachments:

kyle.vcf (text/x-vcard, 290B) download begin:vcard n:Bateman;Kyle tel;fax:801-377-8096 tel;work:801-377-8033x101 x-mozilla-html:FALSE url:www.actiontarget.com org:Action Target Inc adr:;;PO Box 636;Provo;UT;84603;US version:2.1 email;internet:kyle@actiontarget.com title:President x-mozilla-cpt:;-15520 fn:Kyle Bateman end:vcard

Message-ID: <393EECB4.49E68076@actarg.com>
Permalink:  ../393EECB4.49E68076@actarg.com/
Also on:    postgresql.org/message-id/393EECB4.49E68076@actarg.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-sql@postgresql.org
  Cc: kyle@actarg.com, wieck@debis.com
  Subject: Re: References and privileges
  In-Reply-To: <393EECB4.49E68076@actarg.com>
  References: <393EECB4.49E68076@actarg.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