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

Allow the Agent<->Endpoint local relay port to be changed #817

Closed
ferullo opened this issue Jul 29, 2022 · 4 comments
Closed

Allow the Agent<->Endpoint local relay port to be changed #817

ferullo opened this issue Jul 29, 2022 · 4 comments
Labels
Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Comments

@ferullo
Copy link

ferullo commented Jul 29, 2022

Users sometimes find that they cannot get Agent and Endpoint to connect to each other because one or both of the ports used for the Agent<->Endpoint connection (6788 and 6789) are already taken. This enhancement request is to solve that problem.

Possible solutions to this enhancement request would be:

  • A way to change it explicitly. This is hard (but not unsolvable) because Endpoint wouldn't have a way to know of the changed port until it connected over port 6788 in the first place!
  • Agent opens a much higher port in a randomized range and Endpoint "finds" the port via some local scanning
  • Use a Unix domain socket/Windows pipe to replace the 6788 port. The information sent over that port can relay what port to use for the 6789 purpose.
  • Anything else that solves the core problem 😄
@ph
Copy link
Contributor

ph commented Aug 1, 2022

We are looking to move to npipe/unix socket for internal communication so that should fix that problem, cc @blakerouse

@ph ph added the Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team label Aug 1, 2022
@blakerouse
Copy link
Contributor

We need to see how this affects running Elastic Agent in one container and Endpoint in another. They will probably need to share a emptyDir to place the unix socket in.

I don't see any issues on physical hosts.

@lucabelluccini
Copy link
Contributor

Actually, we can extend this to "allowing users to configure the Management & Monitoring ports" in Elastic Agent via the Fleet UI, on a Fleet EA Policy basis.

@blakerouse
Copy link
Contributor

Closing in favor of #3998.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

No branches or pull requests

4 participants