blide opened a new issue, #6760: URL: https://github.com/apache/kyuubi/issues/6760
### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) ### Search before asking - [X] I have searched in the [issues](https://github.com/apache/kyuubi/issues?q=is%3Aissue) and found no similar issues. ### Describe the feature Currently username passed to the session is truncated up to first `/` or `@`. User logged in as `bob/DOMAIN` will produce session with user=bob. https://github.com/apache/kyuubi/blob/0feacf1776434989c98e1cc305eaff8ad79750f2/kyuubi-common/src/main/scala/org/apache/kyuubi/service/TFrontendService.scala#L147 Therefore there is no way to differentiate users `bob/DOMAIN1` and `bob/DOMAIN2` inside session. Issue suggests to pass domain part to the session. ### Motivation When using custom `GroupProvider` and `SessionConfAdvisor` it might required to know user's domain part of username. In my case it's possible there are `bob/DOMAIN1` and `bob/DOMAIN2`, so I want to differentiate them. ### Describe the solution Add full username including a domain part to the session config, e.g. `kyuubi.session.full.user` field. ### Additional context _No response_ ### Are you willing to submit PR? - [X] Yes. I would be willing to submit a PR with guidance from the Kyuubi community to improve. - [ ] No. I cannot submit a PR at this time. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
