fix(pegboard-gateway): enforce tunnel message state#4622
Conversation
PR Review: fix(pegboard-gateway): enforce tunnel message stateThis PR adds a state machine to the pegboard gateway to enforce valid message sequences for in-flight requests. Good defensive security improvement overall. What the PR doesIntroduces IssuesBug: The protocol includes a This isn't a correctness bug today, but it's worth either:
Potential log noise: tracing::warn!(
...
message_kind=?msg.message_kind,
"dropping invalid tunnel message for request state"
);For a Missing test coverageThe tests are a good start, but a few cases are uncovered:
Minor notes
SummaryThe core state machine logic is correct and the approach is sound. The main actionable items are: (1) clarify the |
d96b76e to
c8659a3
Compare
3dac32a to
8a24a45
Compare
c8659a3 to
eeba1f7
Compare
3ea8872 to
d1b99aa
Compare
eeba1f7 to
d0fd3ff
Compare
d1b99aa to
67191e0
Compare
8088fbf to
24f0e66
Compare
67191e0 to
721c022
Compare
Merge activity
|
721c022 to
da0a966
Compare

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: