Skip to content

[ADH-9238] Support engine profiles blacklist - #30

Open
tigrulya-exe wants to merge 2 commits into
develop/4.4.0/1.11.1.2from
feature/ADH-9238
Open

[ADH-9238] Support engine profiles blacklist#30
tigrulya-exe wants to merge 2 commits into
develop/4.4.0/1.11.1.2from
feature/ADH-9238

Conversation

@tigrulya-exe

Copy link
Copy Markdown
Member

Added engine profiles blacklist support. It can be configured by the following option:

___(user|group)___.kyuubi.engine.profiles.blacklist=profile1,profile2

user: String): Boolean = {
if (profilesBlacklist.contains(profile)) {
warn(s"User '$user' is not allowed to implicitly use the engine profile '$profile'. " +
"Continuing without applying any engine profile.")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor issue: this warning ("Continuing without applying any engine profile") is only true for the last call, allowedImplicitly() is called twice. Next profile can be selected.
It's better to split this method with different logging.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch! Fixed logging

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems you forgot to change KyuubiConf.scala, test failed:
https://github.com/arenadata/kyuubi/actions/runs/31653593169/job/94303001464#step:8:6509

Line 197 is not expected. The file (/home/runner/work/kyuubi/kyuubi/docs/configuration/settings.md) is out of date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants