Question: Authorization on query views #14790
Unanswered
jonashartwig
asked this question in
Q&A
Replies: 1 comment 4 replies
-
I think you would find https://trino.io/docs/current/sql/create-view.html#security useful. cc: @dain |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all and thanks for reading my question,
We wonder about the security model. I understand that the
SystemAccessControl
class supports checking an authorizer if a user has select on columns for tables.What we would like to do is check if a user wants to select from a view, that that user also has access to the underlaying table columns.
In that particular case, the user running the query is not the same as the user creating the view.
Let me give you an example:
I create a view using the following query:
create view data.v_test as select * from data.t_my secret_data;
I create the view and I have access to the tabledata.t_my secret_data
. Our permissions should be able to say that everyone can show and select from views.However, now my friend Rosy wants to select from that view but has not access to
data.t_my secret_data
. We want Trino to check that a user issuing a query against a view is checked for table access as well.Is that possible? If yes how is this done and if not, can we add a feature request? Does this line of thought makes sense?
Regards
Beta Was this translation helpful? Give feedback.
All reactions