Skip to content

Using pipe_id to identify client may not be safe #3

@zacharied

Description

@zacharied

We currently use nng_pipe_id() to figure out the source of a message. But if the pipe_id is something that is written by the nng client library, then a tenant can totally just spoof their own client ID. My intuition tells me that it's probably set up like that.

Solutions:

  • Have an individual named pipe for each tenant
  • Give client a secret token when they first connect, and require that token with all future requests

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions