This repository was archived by the owner on Feb 24, 2024. It is now read-only.
This repository was archived by the owner on Feb 24, 2024. It is now read-only.
Make the api_owner
role first class #400
Open
Description
To make views work as expected for RLS, we recommend creating an api_owner
role on:
https://postgrest.org/en/stable/schema_structure.html#views
But this role is thought as a workaround, that will be avoided once views support something similar to SECURITY INVOKER
.
If views were to support that, then the INVOKER role would need privileges on the source tables of the views, i.e. the anon
role would not only need privileges on the api
view, but also on the private
table. That would be incorrect, as the api roles should only need privileges on the exposed schemas.
So I think the api_owner
role is here to stay. It should be as integral as our auth roles.