pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jeff Janes <jeff.janes@gmail.com>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: permissions denial to superuser with foreign keys
Date: Fri, 03 Nov 2017 15:47:50 -0400
Message-ID: <12118.1509738470@sss.pgh.pa.us> (raw)
In-Reply-To: <CAMkU=1y815FD9tS2=kS5NyU+YAdqjH_xD6aZLoXv3962+aiTNQ@mail.gmail.com>
References: <CAMkU=1y815FD9tS2=kS5NyU+YAdqjH_xD6aZLoXv3962+aiTNQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Jeff Janes <jeff.janes@gmail.com> writes:
> I thought superusers bypassed permissions checks, but was surprised where
> in this case they do not:

This amounts to asking for superuser permissions to propagate into
SECURITY DEFINER functions called by the superuser, which strikes me
as an utterly horrid idea.

(RI triggers aren't actually implemented with the SECURITY DEFINER
mechanism, but they act like they are.)

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (2+ messages)

Message-ID: <12118.1509738470@sss.pgh.pa.us>
Permalink:  ../12118.1509738470@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12118.1509738470@sss.pgh.pa.us

 · 

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jeff.janes@gmail.com
  Subject: Re: permissions denial to superuser with foreign keys
  In-Reply-To: <12118.1509738470@sss.pgh.pa.us>
  References: <CAMkU=1y815FD9tS2=kS5NyU+YAdqjH_xD6aZLoXv3962+aiTNQ@mail.gmail.com> <12118.1509738470@sss.pgh.pa.us>

* 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