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

Try using Unix Domain Sockets between Agent GRPC and Forward and Reverse Proxies #233

Closed
CMCDragonkai opened this issue Aug 30, 2021 · 2 comments
Assignees
Labels
development Standard development research Requires research

Comments

@CMCDragonkai
Copy link
Member

Specification

The UDS is a fully local socket implementation now available on all POSIX systems and Windows 10.

It may be a more secure alternative to using TCP sockets between the Agent GRPC and the Forward and Reverse proxies. It certainly reduces the number of TCP ports we are occupying.

GRPC seems to be able to connect or listen on UDS. And Node http/net can also listen/connect on UDS.

This is not a critical feature, and should only be done if it works perfectly on Linux, Mac and Windows.

Advantages:

  • More secure than using TCP sockets
  • No need to mess with the proxy auth code to authenticate
  • No need for global allocation and usage of a TCP port
  • Can be faster than TCP port
  • Can use filesystem permissions to secure the UDS socket (not sure about this on Windows 10)

Additional context

Tasks

  1. ...
  2. ...
  3. ...
@CMCDragonkai CMCDragonkai added development Standard development research Requires research labels Aug 30, 2021
@CMCDragonkai
Copy link
Member Author

If in #234 we change to our own custom channel implementation, we may not need a completely external proxy. If external proxy is not used, this is not relevant. If it is still used, a UDS can be useful but we would need to ensure that also works on Android and iOS.

@CMCDragonkai
Copy link
Member Author

CMCDragonkai commented Jul 23, 2022

This is not relevant anymore, we're going to stick with the TCP system, or use a custom channel or this issue is moot when we move out of GRPC #249.

@CMCDragonkai CMCDragonkai self-assigned this Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development Standard development research Requires research
Development

No branches or pull requests

1 participant