Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Direct round trips#68

Merged
peterbroadhurst merged 1 commit intomainhyperledger/firefly-dataexchange-https:mainfrom
direct-round-tripshyperledger/firefly-dataexchange-https:direct-round-tripsCopy head branch name to clipboard
Aug 10, 2022
Merged

Direct round trips#68
peterbroadhurst merged 1 commit intomainhyperledger/firefly-dataexchange-https:mainfrom
direct-round-tripshyperledger/firefly-dataexchange-https:direct-round-tripsCopy head branch name to clipboard

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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.