#Unix sockets or named pipes on Windows

1 messages · Page 1 of 1 (latest)

sudden prairie
#

We have been considering whether we should switch to having engine-session communicate with SDKs over unix sockets instead of localhost. The main benefit is a somewhat improved security posture.

I saw somewhere that unix sockets are supported on Windows now, but I have no idea what the state of support actually is. I also believe there's something called "named pipes" on Windows that serve a similar purpose? My main question is whether switching to unix sockets or named pipes would make your work on the Powershell/C# based SDK a lot harder or if you think it'd be easy to deal with.

#

Unix sockets or named pipes on Windows

tribal saffron
#

Where would the socket communication happen? You would use this in place of an http endpoint?

sudden prairie
tribal saffron
#

Named pipes is what docker uses on Windows

#

I don't know how far down the .Net networking stack one has to go to access named pipes.

#

It doesn't look crazy

sudden prairie
tribal saffron
#

Basically works the same as an IO stream

#

It doesn't seem overly burdensome.

sudden prairie
#

Awesome, thank you Chris!

#

Still not sure which direction we'll go but these are super helpful data points

tribal saffron
#

One of my coworkers tested it out and despite a lot of discussion in GH, the httpclient functionality might not have made it in.