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.
Code of Conduct
Search before asking
Describe the feature
Currently username passed to the session is truncated up to first
/
or@
. User logged in asbob/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 usersbob/DOMAIN1
andbob/DOMAIN2
inside session. Issue suggests to pass domain part to the session.Motivation
When using custom
GroupProvider
andSessionConfAdvisor
it might required to know user's domain part of username. In my case it's possible there arebob/DOMAIN1
andbob/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?