From: Stephen Frost <sfrost@snowman.net>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: deinspanjer@gmail.com, "pgsql-docs@postgresql.org" <pgsql-docs@postgresql.org>
Subject: Re: Row Level Security Policies documentation doesn't mention lack of support for views
Date: Wed, 30 Aug 2017 20:33:37 -0400
Message-ID: <20170831003337.GI4628@tamriel.snowman.net> (raw)
In-Reply-To: <CAKFQuwave9=pSUd2xWsm7tzsLsSfmq4ik5H3DSCRooBhCPsQ9w@mail.gmail.com>
References: <20170629142511.1481.84436@wrigleys.postgresql.org>
<20170831000910.GA28535@momjian.us>
<CAKFQuwave9=pSUd2xWsm7tzsLsSfmq4ik5H3DSCRooBhCPsQ9w@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-docs>
David, Bruce,
* David G. Johnston (david.g.johnston@gmail.com) wrote:
> The CREATE VIEW documentation links to
>
> https://www.postgresql.org/docs/9.6/static/rules-privileges.html
>
> which covers this dynamic in considerable detail (and there is a blurb on
> the CREATE VIEW page as well), and specifically:
>
> "Relations that are used due to rules get checked against the privileges of
> the rule owner, not the user invoking the rule."
>
> It does feel like an additional blurb about views and a link to the above
> page would be warranted on the ddl-rowsecurity.html page.
I tend to agree, almost always, that additional documentation is a
benefit. The only drawback to it is that, sometimes, we end up saying
the same thing too much and that leads to readers skipping past
important sections.
I do think we need to provide more documentation around how views and
our privilege system work as I find that the question comes up somewhat
regularly. Note that this isn't RLS specific, but applies to both the
GRANT system and RLS- views are executed as the user of the view and not
with the privileges of the view user.
I can certainly try to help with crafting additional documentation
around this once I'm back from PostgresOpen in San Francisco next week.
Thanks!
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
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 using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: sfrost@snowman.net, david.g.johnston@gmail.com, bruce@momjian.us
Subject: Re: Row Level Security Policies documentation doesn't mention lack of support for views
In-Reply-To: <20170831003337.GI4628@tamriel.snowman.net>
* 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