-
Hello, I am looking into deploying a pinniped-supervisor which suggests using Unix Domain Sockets to expose the HTTP service when used along with a service mesh. I've looked at the docs, but I am uncertain if I used the right strings to find the information. Is it possible to use UDS endpoint on a service with LinkerD? There is also another comment at the end of the doc "For service meshes that do not support Unix domain sockets, the http listener should be configured to listen on 127.0.0.1." I am uncertain if there is anything special there. Would linkerd be able to route to service, if service is only listening on 127.0.0.1? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Linkerd doesn't currently support proxying connections onto UDS. Clients have to target a specific port and the proxy would have to know how to map ports to Unix Domain Sockets. Furthermore, the pod would have be configured to have a shared volume so that the proxy can access these sockets. This configuration overhead is not trivial. As of Linkerd 2.11, Linkerd will not forward incoming traffic to sockets bound on the loopback interface (127.0.0.1) because this is in itself a security risk: if you're binding an application on the loopback interface you're explicitly saying that the port should not be exposed to connections from other pods. However, Linkerd 2.11 adds |
Beta Was this translation helpful? Give feedback.
Linkerd doesn't currently support proxying connections onto UDS. Clients have to target a specific port and the proxy would have to know how to map ports to Unix Domain Sockets. Furthermore, the pod would have be configured to have a shared volume so that the proxy can access these sockets. This configuration overhead is not trivial.
As of Linkerd 2.11, Linkerd will not forward incoming traffic to sockets bound on the loopback interface (127.0.0.1) because this is in itself a security risk: if you're binding an application on the loopback interface you're explicitly saying that the port should not be exposed to connections from other pods.
However, Linkerd 2.11 adds
Server
andServerAutho…