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][Publicservice] Linkis supports proxy user mode #1590

Closed
2 tasks done
peacewong opened this issue Mar 1, 2022 · 0 comments
Closed
2 tasks done

[Feature][Publicservice] Linkis supports proxy user mode #1590

peacewong opened this issue Mar 1, 2022 · 0 comments

Comments

@peacewong
Copy link
Contributor

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Problem Description

Now Linkis does not support proxy user mode. It cannot well support the following methods, such as user A performing tasks on behalf of user B, querying user B's workspace files and other scenarios.
现在Linkis不支持代理用户模式.没法很好的支持如下方式,如A用户代理B用户执行任务,查询B用户的工作空间文件等场景

Description

No response

Use case

No response

solutions

  1. Added a cookie for obtaining proxy users
  2. Obtain the corresponding proxy user cookie where the user authority needs to be judged
  3. Determine whether the logged-in user has the authority to proxy to the user
  4. Proxy to the corresponding user for execution
  5. 新增获得代理用户的Cookie
  6. 在需要判断用户权限的地方获取对应的代理用户Cookie
  7. 判断登录用户是否有代理到该用户的权限
  8. 代理到对应的用户进行执行

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!
@peacewong peacewong added the enhancement New feature or request label Mar 1, 2022
@peacewong peacewong changed the title [Feature] Linkis supports proxy user mode [Feature][Publicservice] Linkis supports proxy user mode Mar 1, 2022
peacewong added a commit to WeDataSphere/linkis that referenced this issue Mar 1, 2022
peacewong added a commit to WeDataSphere/linkis that referenced this issue Mar 2, 2022
peacewong added a commit to WeDataSphere/linkis that referenced this issue Mar 3, 2022
Alexkun pushed a commit that referenced this issue Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants