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

encryption? #47

Open
zachrybaker opened this issue Aug 29, 2023 · 4 comments
Open

encryption? #47

zachrybaker opened this issue Aug 29, 2023 · 4 comments

Comments

@zachrybaker
Copy link

I'm seeing no mention of encryption.

Granted, there's a discussion that we could have as to why Microsoft chose not to secure the transport of a pipe.

But it would be great if this package added (optionally) transport security.

@cyanfish
Copy link
Owner

cyanfish commented Aug 29, 2023

You can set access controls (e.g. CurrentUserOnly). Aside from that I'm not sure there's a ton of point to encrypting a connection that doesn't go over the network. And as far as I know it's not possible to sniff a named pipe connection from a process that's not the server/client.

@zachrybaker
Copy link
Author

zachrybaker commented Aug 30, 2023 via email

@cyanfish
Copy link
Owner

That's fair, I was assuming in that case you'd just use normal gRPC, but pipes do give you ACLs and impersonation.

With the way this project works adding encryption isn't a simple thing. You might try the .NET 8 implementation of gRPC named pipes, which uses HTTP as the underlying transport, so in theory should be possible to set up TLS for.

@isd-jnh
Copy link

isd-jnh commented Oct 6, 2023

Would it be not possible to use SslStream to add encryption over named pipe streams ?

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

No branches or pull requests

3 participants