-
Notifications
You must be signed in to change notification settings - Fork 919
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[KYUUBI #6003] Allow disabling user impersonation on launching engine #6003
Closed
Closed
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
e982e23
Allow disable user impersonation on launching engine
pan3793 a1563e1
HadoopCredentialsManager
pan3793 9273b94
fix
pan3793 033a322
1.9.0
pan3793 8711c22
address comment
pan3793 add20fd
nit
pan3793 c4002fe
grammar
pan3793 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2087,20 +2087,33 @@ object KyuubiConf { | |
.version("1.5.0") | ||
.fallbackConf(ENGINE_CONNECTION_URL_USE_HOSTNAME) | ||
|
||
val ENGINE_DO_AS_ENABLED: ConfigEntry[Boolean] = | ||
buildConf("kyuubi.engine.doAs.enabled") | ||
.doc("Whether to enable user impersonation on launching engine. When enabled, " + | ||
"for engines which supports user impersonation, e.g. SPARK, depends on the " + | ||
s"`kyuubi.engine.share.level`, different users will be used to launch the engine. " + | ||
"Otherwise, Kyuubi Server's user will always be used to launch the engine.") | ||
.version("1.9.0") | ||
.booleanConf | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's add this to 1.9.0 instead of a bugfix version There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay |
||
.createWithDefault(true) | ||
|
||
val ENGINE_SHARE_LEVEL: ConfigEntry[String] = buildConf("kyuubi.engine.share.level") | ||
.doc("Engines will be shared in different levels, available configs are: <ul>" + | ||
" <li>CONNECTION: engine will not be shared but only used by the current client" + | ||
" connection</li>" + | ||
" <li>USER: engine will be shared by all sessions created by a unique username," + | ||
s" see also ${ENGINE_SHARE_LEVEL_SUBDOMAIN.key}</li>" + | ||
" <li>CONNECTION: the engine will not be shared but only used by the current client" + | ||
" connection, and the engine will be launched by session user.</li>" + | ||
" <li>USER: the engine will be shared by all sessions created by a unique username," + | ||
s" and the engine will be launched by session user.</li>" + | ||
" <li>GROUP: the engine will be shared by all sessions created" + | ||
" by all users belong to the same primary group name." + | ||
" The engine will be launched by the group name as the effective" + | ||
" The engine will be launched by the primary group name as the effective" + | ||
" username, so here the group name is in value of special user who is able to visit the" + | ||
" computing resources/data of the team. It follows the" + | ||
" [Hadoop GroupsMapping](https://reurl.cc/xE61Y5) to map user to a primary group. If the" + | ||
" primary group is not found, it fallback to the USER level." + | ||
" <li>SERVER: the App will be shared by Kyuubi servers</li></ul>") | ||
" <li>SERVER: the engine will be shared by Kyuubi servers, and the engine will be launched" + | ||
" by Server's user.</li>" + | ||
" </ul>" + | ||
s" See also `${ENGINE_SHARE_LEVEL_SUBDOMAIN.key}` and `${ENGINE_DO_AS_ENABLED.key}`.") | ||
.version("1.2.0") | ||
.fallbackConf(LEGACY_ENGINE_SHARE_LEVEL) | ||
|
||
|
@@ -2115,8 +2128,8 @@ object KyuubiConf { | |
" all the capacity of the Trino.</li>" + | ||
" <li>HIVE_SQL: specify this engine type will launch a Hive engine which can provide" + | ||
" all the capacity of the Hive Server2.</li>" + | ||
" <li>JDBC: specify this engine type will launch a JDBC engine which can forward " + | ||
" queries to the database system through the certain JDBC driver, " + | ||
" <li>JDBC: specify this engine type will launch a JDBC engine which can forward" + | ||
" queries to the database system through the certain JDBC driver," + | ||
" for now, it supports Doris, MySQL, Phoenix, PostgreSQL and StarRocks.</li>" + | ||
" <li>CHAT: specify this engine type will launch a Chat engine.</li>" + | ||
"</ul>") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @yaooqinn @zhouyifan279 WDYT of this configuration name? My another candidate is
kyuubi.engine.impersonation.enabled
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for kyuubi.engine.doAs.enabled.