Skip to content
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

[FEATURE] Support impersonation mode for flink sql engine #6368

Open
3 of 4 tasks
wForget opened this issue May 7, 2024 · 1 comment · May be fixed by #6383
Open
3 of 4 tasks

[FEATURE] Support impersonation mode for flink sql engine #6368

wForget opened this issue May 7, 2024 · 1 comment · May be fixed by #6383
Assignees
Labels

Comments

@wForget
Copy link
Member

wForget commented May 7, 2024

Code of Conduct

Search before asking

  • I have searched in the issues and found no similar issues.

Describe the feature

Support impersonation mode for flink sql engine

Motivation

No response

Describe the solution

Add the following options to FlinkProcessBuilder:

HADOOP_PROXY_USER=proxyUser
security.delegation.tokens.enabled=false

Additional context

No response

Are you willing to submit PR?

  • 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.
@wForget
Copy link
Member Author

wForget commented May 22, 2024

HADOOP_PROXY_USER=proxyUser
security.delegation.tokens.enabled=false

After turning off security.delegation.tokens.enabled, it is difficult for us to pass delegation token updates of jobmanager to taskmanager.

Based on the solution in apache/flink#22009 (comment), I will follow the steps:

  • Implement custom KyuubiDelegationTokenProvider and KyuubiDelegationTokenReceiver
  • Add the following options
HADOOP_PROXY_USER=proxyUser
security.module.factory.classes=org.apache.flink.runtime.security.modules.JaasModuleFactory,org.apache.flink.runtime.security.modules.ZookeeperModuleFactory
security.delegation.token.provider.hadoopfs.enabled=false
security.delegation.token.provider.s3-hadoop.enabled=false
security.delegation.token.provider.s3-presto.enabled=false
security.delegation.token.provider.HiveServer2.enabled=false
security.delegation.token.provider.hbase.enabled=false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant