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
At the moment, the only way of assigning groups to Trino users (at least when using PASSWORD, JWT, and/or OAUTH2 authentications) is through the File Group Provider.
In the chart, this configuration must be provided like so:
Which can easily become unmanageable when handling a large number of users and groups.
My proposal is to slightly refactor this section and transforming groups into a map of lists, where the keys are the groups and the list elements are the users, like so:
This makes the user to group assignments much more maintainable (you can sort the users alphabetically, use the collapse feature in IDEs, etc.).
I can provide a PR for this feature. It would be easy enough to make this backward compatible, I would add a groupProvider section in values.yaml that, if provided, would override the auth.groups configuration.
Maybe a less pervasive change could be to just make the content of additionalConfigFiles templetable so that users could add Helm templates in the file contents.
@nineinchnick what do you think about the latter option? It would be easy enough to implement and with very limited impact.
Hello,
At the moment, the only way of assigning groups to Trino users (at least when using PASSWORD, JWT, and/or OAUTH2 authentications) is through the File Group Provider.
In the chart, this configuration must be provided like so:
Which can easily become unmanageable when handling a large number of users and groups.
My proposal is to slightly refactor this section and transforming
groups
into a map of lists, where the keys are the groups and the list elements are the users, like so:This makes the user to group assignments much more maintainable (you can sort the users alphabetically, use the
collapse
feature in IDEs, etc.).I can provide a PR for this feature. It would be easy enough to make this backward compatible, I would add a
groupProvider
section invalues.yaml
that, if provided, would override theauth.groups
configuration.The content of
group.db
can then be computed like so:The text was updated successfully, but these errors were encountered: