Skip to content

feat: add unix socket listener#60

Draft
zachsmith1 wants to merge 1 commit intomainfrom
feat/unixsocket
Draft

feat: add unix socket listener#60
zachsmith1 wants to merge 1 commit intomainfrom
feat/unixsocket

Conversation

@zachsmith1
Copy link
Contributor

  • this PR enables an optional mode for binding to a unix-socket instead of the default host/port listener
  • this allows us to decouple the iroh-gateway container from the envoy pod deployment
  • previously, if we wanted to bump the iroh-gateway version it would be rolling out the envoy pod since the iroh-gateway container runs inside it. this new model will allow us to run iroh-gateway as a daemonset next to envoy daemonset and then share the nodes unix socket. the other option would be to use a svc with locality but that adds overhead and an extra network hop (kube-proxy/IPVS/iptables and TCP stack).
  • UDS model is low overhead and strictly node-local

@zachsmith1 zachsmith1 requested a review from Frando February 4, 2026 23:56
@zachsmith1
Copy link
Contributor Author

Putting this in wip until we split out some things due to windows build complaining due to shared libs

@zachsmith1 zachsmith1 marked this pull request as draft February 5, 2026 00:44
@Frando
Copy link
Collaborator

Frando commented Feb 6, 2026

I can just add UDS support to iroh-proxy-utils, it'll save you the additional TCP connection.

@Frando
Copy link
Collaborator

Frando commented Feb 6, 2026

I added UnixListener support to iroh-proxy-utils: n0-computer/iroh-proxy-utils#10
Will merge and post a PR to update the app to latest iroh-proxy-utils, then you can adapt this PR to use DownstreamProxy::forward_uds_listener and skip the additional TCP connection.

#66 contains the bump to latest iroh-proxy-utils - feel free to merge that and then update your PR here afterwards.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants