kyuubi icon indicating copy to clipboard operation
kyuubi copied to clipboard

[TASK][EASY] Engine supports to bind only a specific range of ports

Open pan3793 opened this issue 1 year ago • 4 comments

What's the level of this task?

EASY (this assumption supposes you are familiar with Kyuubi architecture)

Code of Conduct

Search before creating

  • [X] I have searched in the task list and found no similar tasks.

Mentor

  • [ ] I have sufficient expertise on this task, and I volunteer to be a mentor of this task to guide contributors through the task.

Skill requirements

  • Knowledge of Kyuubi architecture
  • Basic knowledge of Scala language and network programming

Background and Goals

By default, Kyuubi's engine binds a random port (actually call socket.bind(0)) and registers itself to discovery service (zookeeper or etcd). In some cases, the Kyuubi server and engines may run in different network zones, e.g. deploying the Kyuubi Server on K8s but launching the Spark engine in a YARN cluster, for security purposes, traffic may be only allowed in a range of ports.

Implementation steps

providing a new configuration to allow the engine to bind only a specific range of ports

Additional context

Introduction of 2024H1 Kyuubi Code Contribution Program

pan3793 avatar Apr 11 '24 15:04 pan3793

please assign it to me, thanks @pan3793 .Although I',m new to this, it might be finished in 10 days.

geek-dragon avatar Apr 14 '24 13:04 geek-dragon

@geek-dragon thanks, assigned, and feel free to ask questions by leaving comments here.

pan3793 avatar Apr 15 '24 08:04 pan3793