Skip to content

Conversation

@gabriel-indik
Copy link
Contributor

Signed-off-by: Gabriel Indik gabriel.indik@kaleido.io

Signed-off-by: Gabriel Indik <gabriel.indik@kaleido.io>
@gabriel-indik
Copy link
Contributor Author

Changes in this PR:
If the sender and recipient ID match (round trip) no mTLS communication is established. Instead DX will:

  1. In the case of messages, directly place the message in the queue and emit the corresponding events
  2. In the case of blob transfers, copy the blob to the "received" folder location (which may contain the destination) and emit the corresponding events.

}
senderDestination = segments[1];
if (senderDestination !== undefined && !config.destinations?.includes(senderDestination)) {
throw new RequestError(`Unknown sender destination expected=${config.destinations?.join('|') ?? 'none'} recieved=${senderDestination}`, 400);
Copy link
Contributor

@awrichar awrichar Aug 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: recieved -> received (and a few lines above as well)

Copy link
Contributor

@awrichar awrichar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. I verified that this seems to fix the "self signed certificate" error seen in the tests on hyperledger/firefly#942.

Copy link
Contributor

@peterbroadhurst peterbroadhurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@peterbroadhurst peterbroadhurst merged commit f5e321d into main Aug 10, 2022
@peterbroadhurst peterbroadhurst deleted the direct-round-trips branch August 10, 2022 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants