Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use mailbox callback to authenticate messages in hooks where necessary #2609

Merged
merged 10 commits into from
Aug 14, 2023

Conversation

yorhodes
Copy link
Member

@yorhodes yorhodes commented Aug 4, 2023

Description

Adds latestDispatchedId to Mailbox for use in hooks that need to authenticate message content (eg OpStackHook or MerkleTreeHook). Removes concept of next hook from hook interface, which prescribed stack based approach.

Drive-by changes

Inserts ISM used to verify messages into Delivery context

Related issues

#2456 (comment)

Backward compatibility

Maintains backwards compatibility with delivered interface

Testing

WIP

yorhodes and others added 3 commits August 4, 2023 12:21
### Description

- Adding default hook using custom config

### Drive-by changes

- `postDispatch` is now public

### Related issues

- v3

### Backward compatibility

Yes

### Testing

None
@yorhodes yorhodes marked this pull request as ready for review August 11, 2023 16:26
@yorhodes yorhodes requested review from asaj and tkporter as code owners August 11, 2023 16:26
@yorhodes yorhodes changed the title Try transient mailbox callbacks where necessary Use mailbox callback to authenticate messages in hooks where necessary Aug 11, 2023
aroralanuk and others added 5 commits August 14, 2023 16:30
### Description

- Added `FallbackDomainRoutingHook` which fallbacks to
`mailbox.defaultHook`

### Drive-by changes

- None

### Related issues

- v3
- Needs to adapt to enumerable mapping after #2644

### Backward compatibility

Yes

### Testing

- Unit testing
@yorhodes yorhodes enabled auto-merge (squash) August 14, 2023 22:56
@yorhodes yorhodes disabled auto-merge August 14, 2023 22:57
@yorhodes yorhodes enabled auto-merge (squash) August 14, 2023 22:57
@yorhodes yorhodes disabled auto-merge August 14, 2023 22:58
@yorhodes yorhodes merged commit 96d8f79 into v3 Aug 14, 2023
@yorhodes yorhodes deleted the transient-latest-dispatched branch August 14, 2023 22:58
yorhodes added a commit that referenced this pull request Aug 18, 2023
@yorhodes yorhodes mentioned this pull request Aug 18, 2023
yorhodes pushed a commit that referenced this pull request Sep 13, 2023
Use mailbox callback to authenticate messages in hooks where necessary (#2609)

Co-authored-by: Kunal Arora <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants