apache / apache/kyuubi

[FEATURE] Add realUser field for KyuubiSession to identify realUser and proxyUser

Open
#2,581 3 comments 0 reactions 1 assignee Claimed by @turboFei View on GitHub
kind:feature priority:major
Dominant language
Scala
Stars
2.4k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

### 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/incubator-kyuubi/issues?q=is%3Aissue) and found no similar issues.

### Describe the feature

Return the realUser and proxyUser option by getUserName method.
```
def getUserName(sessionConf: Map[String, String]): (String, Option[String])
```

### Motivation

To show more useful info, especially for batch restful api.

### Describe the solution

_No response_

### Additional context

_No response_

### Are you willing to submit PR?

- [x] Yes I am willing to submit a PR!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.