Row Level Security Policies documentation doesn't mention lack of support for views

From: deinspanjer(at)gmail(dot)com
To: pgsql-docs(at)postgresql(dot)org
Subject: Row Level Security Policies documentation doesn't mention lack of support for views
Date: 2017-06-29 14:25:11
Message-ID: 20170629142511.1481.84436@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

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.

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Michael Paquier 2017-06-29 22:38:24 Re: Password encryption
Previous Message mudit0201 2017-06-29 12:23:30 Password encryption