False positive: '/send' should have failed, as the recipient did not receive the payload

Description

Setup using Docker images orchestrated on a programatically created Docker network.

There are two Orions (OrionA and OrionB), with each Orion having a single key pair (privKey, pubKey) and each of their `nodeurl` set as `0.0.0.0:8080`.

A payload with OrionA pubKey as the `from` and OrionB pubKey is send to OrionA (via `/send` endpoint) for propagation and returns success, with a receipt, however OrionB cannot find the receipt.

 

Node State
OrionA `/receive` with the OrionA pubKey returns 200 & the payload.
OrionA `/receive` with the OrionB pubKey returns 404.
OrionB `/receive` with the OrionA pubKey returns 404.
OrionB `/receive` with the OrionB pubKey returns 404.

 

 

Hypothesis
The recipients are identified only by `nodeUrl`, ignoring the `publicKey`.
i.e. when both keys have the same `nodeUrl` a single positive response is sufficient for the transaction to succeed, despite the fact that node cannot decrypt the second payload (the one encrypted with OrionB's pubKey),

Environment

None

Assignee

Madeline Murray

Reporter

Chris Hare

Labels

None

Story Points

3

Sprint

None

Priority

P3
Configure