All nodes (http, front, core, storage) listen on TCP only. On multi-user hosts, any local user can connect to these ports, or take a port first and serve /api/config, which browsers run as JS. Unix sockets in a mode-700 directory prevent both, and also stop side-by-side instances from colliding.
Proposal: optional fields in config/infra.js. When they're unset, behavior is unchanged.
public: { ..., httpSocket: '/run/cryptpad/http.sock' },
front: [{ socket: '/run/cryptpad/front-0.sock' }],
core: [{ socket: '/run/cryptpad/core-0.sock' }],
storage: [{ socket: '/run/cryptpad/storage-0.sock', wsSocket: '/run/cryptpad/storage-0-ws.sock' }],
ws (ws+unix://) and httpxy ({ socketPath }) already support unix sockets, so no new dependencies are needed.
We run this as a patch on cryptpad-server 1.0.3 (as pinned by CryptPad 2026.10.0) in production (2 front, 2 core and 2 storage nodes, no TCP listeners). Would you accept a PR?