Skip to content

Add domain socket/named pipe support#91

Merged
blakerouse merged 8 commits intoelastic:mainfrom
aleksmaus:feature/local_rpc
Jan 16, 2024
Merged

Add domain socket/named pipe support#91
blakerouse merged 8 commits intoelastic:mainfrom
aleksmaus:feature/local_rpc

Conversation

@aleksmaus
Copy link
Copy Markdown
Contributor

This adds support for elastic agent client comms over domain socket on *nix and named pipe on windows.
I saw there was a discussion on the agent channel that this would solve some of the issues seen with localhost ports blocked etc.

There is no changes to the interface signatures, it's still fully backwards compatible.
Added more tests to cover comms over domain sockets/named pipes with and without TLS.

Can update the agent/beats if this looks ok and work with Endpoint team to get er done.

@aleksmaus aleksmaus requested a review from a team as a code owner December 27, 2023 22:28
@leehinman
Copy link
Copy Markdown
Contributor

@aleksmaus I haven't looked deeply at this, but I did notice that you aren't using https://github.com/elastic/elastic-agent-libs/tree/main/api , which is what the rest of elastic-agent uses for socket/named pipe support. Is there a reason we can't use that?

@aleksmaus
Copy link
Copy Markdown
Contributor Author

@aleksmaus I haven't looked deeply at this, but I did notice that you aren't using https://github.com/elastic/elastic-agent-libs/tree/main/api , which is what the rest of elastic-agent uses for socket/named pipe support. Is there a reason we can't use that?

@leehinman I replaced the direct calls to to winio with the github.com/elastic/elastic-agent-libs/api/npipe APIs.

@pierrehilbert pierrehilbert added the Team:Elastic-Agent Label for the Agent team label Jan 1, 2024
Copy link
Copy Markdown
Contributor

@blakerouse blakerouse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks good. Just a typo comment.

aleksmaus and others added 2 commits January 12, 2024 12:11
Co-authored-by: Blake Rouse <blake.rouse@elastic.co>
@elasticmachine
Copy link
Copy Markdown

💚 Build Succeeded

History

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Team:Elastic-Agent Label for the Agent team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants