Does Mathesar support views or row level security #4745
-
While judging Mathesar's viability for our use case, we need to provision access to certain subsets of data. Does Mathesar work with PG row level security naturally or with views? I don't see any way to manage RLS from within Mathesar but if we can set RLS through PG and then "collaborators" who have db connect, shchema read, and table read permissions woudl then have only certain row read/change persmissions would be fine. If not then does Mathesar work with views? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @sai-sy! Yes, Mathesar automatically respects row-level security. A Mathesar user can only access data if:
One thing to watch out for: superusers are always exempt from row-level security. That’s tripped me up a few times in the past. 😊 As for views, we don’t support them yet. There are some related issues (#4235, #2281) where we’ve started exploring how they might be displayed, but we don’t have concrete plans at the moment. Would you find views useful beyond security/access control? I’d love to hear more about your use case. |
Beta Was this translation helpful? Give feedback.
-
View's could also just be the underlying arch for data explorer |
Beta Was this translation helpful? Give feedback.
Hi @sai-sy! Yes, Mathesar automatically respects row-level security. A Mathesar user can only access data if:
One thing to watch out for: superusers are always exempt from row-level security. That’s tripped me up a few times in the past. 😊
As for views, we don’t support them yet. There are some related issues (#4235, #2281) where we’ve started exploring how they might be displayed, but we don’t have concrete plans at the moment. Would you find views useful beyond security/access control? I’d love t…