apache / linkis

Apache Linkis builds a computation middleware layer to facilitate connection, governance and orchestration between the upper applications and the underlying data engines.
https://linkis.apache.org/
Apache License 2.0
3.27k stars 1.15k forks source link

[FEATURE] add access control for gateway #4992

Closed sjgllgh closed 7 months ago

sjgllgh commented 7 months ago

What is the purpose of the change

I want to add access control functionality to gateway.

  1. Limit the usage of IP addresses for some users. Only the IP addresses configured in the configuration item can use Linkis.
  2. Limit some IP addresses to only send requests to the URL configured in the configuration item.
  3. First determine whether the current user can perform operations from the current IP address, and then determine whether the current IP address has permission to call the current interface.

Related issues/PRs

Related issues: #4983

Brief change log

How to use the new feature

The following configuration needs to be added to linkis-mg-gateway.properties

Checklist