More obvious clarification is needed about how RLS interacts with views - Mailing list pgsql-docs

From PG Doc comments form
Subject More obvious clarification is needed about how RLS interacts with views
Date
Msg-id 156045557781.1350.3998342005368853619@wrigleys.postgresql.org
Whole thread Raw
List pgsql-docs
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/11/sql-createpolicy.html
Description:

It's not clear enough from reading the documentation on RLS security policy
that schema designers need to pay special attention to views and their
ownership.  (Views will bypass RLS security in the common case that they are
owned by a super user.)  I have seen this misunderstanding lead to
unexpected data exposure.

This *is* clarified at the very bottom of the Notes section on the `create
policy` document, but I believe it justifies having a clear and prominent
call out.  Thank you!

pgsql-docs by date:

Previous
From: Pavel Luzanov
Date:
Subject: ATTACH/DETACH partitions and locking
Next
From: Alvaro Herrera
Date:
Subject: Re: ATTACH/DETACH partitions and locking