Skip to content

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

@peacewong

Description

@peacewong

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions