You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug: The attribute "owner" does not get pick up by the JSON Mapper QueryAccessRule. I also don't see any usage of this e.g. in FileBasedSystemAccessControl. IMHO this is a bug, because users limiting user A to kill queries of user B would instead grant user A to kill any query regardless of the owner.
a. We can either remove the "owner" attribute from the documentation.
b. I can think of some use-cases where user A should be able to stand in for user B and kill his query
I would suggest sticking with option b as the interface SystemAccessControl passes the owner attribute e.g. default void checkCanKillQueryOwnedBy(SystemSecurityContext context, String queryOwner)
Missing feature: We are not able to give the group "admin" the ability to kill all queries. The attribute group is missing, we can only grant it to explicit users. This is already implemented for roles in QueryAccessRule so i should be possible to easily implement this
Regards,
Sebastian
The text was updated successfully, but these errors were encountered:
sbernauer
changed the title
Missing group attribute for queries in File system access controll
Missing group attribute for queries in File system access control
Oct 5, 2021
+1 We are finding the need for @sbernauer's 2nd point as well (mapping groups to QueryAccessRules). I can contribute that portion, if you like. It looks like @dain did the original work, as well as the recent addition of Roles - any objections?
Hi Trino-Team!
Reading and trying the docs https://trino.io/docs/current/security/file-system-access-control.html#query-rules i noticed two issues:
a. We can either remove the "owner" attribute from the documentation.
b. I can think of some use-cases where user A should be able to stand in for user B and kill his query
I would suggest sticking with option b as the interface SystemAccessControl passes the owner attribute e.g.
default void checkCanKillQueryOwnedBy(SystemSecurityContext context, String queryOwner)
Regards,
Sebastian
The text was updated successfully, but these errors were encountered: