Skip to content

IPC communication between agent and client (CLI/GUI) #50

@robert-cronin

Description

@robert-cronin

The next problem to figure out is how the client and agent, it looks like there are a couple of ways to achieve this:

Discovery between the agent and the client also needs to be figured out, here are some ideas:

  • Rely on a shared path (this shared path must be user-specific) like /run/user/1000/polykey/socket (this only exists on Linux, find equivalent on Mac/Windows).
  • Rely on a unix domain socket which is also on a shared path that is user-specific. This relies on a shared path existing.

Using UDS is really about getting access to the OS security capabilities to securing the comms. The nodejs TLS module can also do UDS as its an abstraction over the net module, you just have to specify the path in tls.connect. I'm just not sure about the server and tls.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions