logoalt Hacker News

nu11ptr06/27/20251 replyview on HN

I don't worry about security too much given it is just bound to localhost, but I do use a simple password (and make it modifiable by the user). Avoiding port collisions in the real world isn't a big issue, just ask an AI for the least assigned default ports and chance of collision is minor (in worst case, also user modifiable). In return, you get free "remotability", which is kind of a big deal IMO.

I do wish gRPC allowed for easy usage of UNIX domain sockets and perhaps named pipes, however. Sometimes all you need is IPC, but in my case, I'm happy to have remote usage builtin.


Replies

dvdkon06/29/2025

You should worry, system users are relied on to effectively separate privileges even in "single-user" desktops. This has led to privilege escalation before, not to mention the potential for browsers to access these ports [0].

That said, a random password should be enough protection, even if it isn't the cleanest solution.

[0]: e.g. https://palant.info/2020/06/22/exploiting-bitdefender-antivi...