Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dnD3H-0005am-5c for pgsql-docs@arkaria.postgresql.org; Thu, 31 Aug 2017 00:09:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dnD3G-0005MA-Lw for pgsql-docs@arkaria.postgresql.org; Thu, 31 Aug 2017 00:09:42 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dnD2t-0004gt-H9 for pgsql-docs@postgresql.org; Thu, 31 Aug 2017 00:09:19 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dnD2m-00070r-0D for pgsql-docs@postgresql.org; Thu, 31 Aug 2017 00:09:18 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1dnD2k-00034W-S2; Wed, 30 Aug 2017 20:09:10 -0400 Date: Wed, 30 Aug 2017 20:09:10 -0400 From: Bruce Momjian To: deinspanjer@gmail.com Cc: pgsql-docs@postgresql.org, Stephen Frost Subject: Re: Row Level Security Policies documentation doesn't mention lack of support for views Message-ID: <20170831000910.GA28535@momjian.us> References: <20170629142511.1481.84436@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170629142511.1481.84436@wrigleys.postgresql.org> User-Agent: Mutt/1.5.23 (2014-03-12) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org Stephen, is there anything missing in our docs related this issue? --------------------------------------------------------------------------- On Thu, Jun 29, 2017 at 02:25:11PM +0000, deinspanjer@gmail.com wrote: > The following documentation comment has been logged on the website: > > Page: https://www.postgresql.org/docs/9.6/static/ddl-rowsecurity.html > Description: > > The policy documentation page is great, and the example in it is very > informative, but I just discovered a major flaw in our implementation of it > that I would like to see mentioned in the documentation. > > If you create a view on a table, any queries against the view are in the > context of the view creator rather than the actual current user. > > So, in the example on the page, if the admin creates a view of the passwd > table and grants access to this view, alice would no longer be subject to > any of the RLS policies as long as she used the view instead of the real > table. > > -- > Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-docs -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription + -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs