fix: distinguish undecryptable direct messages from channel failures - #11244
fix: distinguish undecryptable direct messages from channel failures#11244RCGV1 wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
📝 WalkthroughWalkthroughPKI routing now distinguishes undecryptable encrypted packets from unknown public keys and reports a dedicated NAK. Tests cover the new routing errors and related channel/key cases. The protobufs subproject pin also advances to a newer revision. ChangesPKI routing error handling
Protobuf revision update
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested labels: Suggested reviewers: Sequence Diagram(s)sequenceDiagram
participant Test as C13 test
participant Router as AuthPipelineRouter
participant Reliable as ReliableRouter
participant Routing as AuthPipelineRoutingModule
Test->>Router: sniff(encrypted PKI packet)
Router->>Reliable: sniffReceived(packet)
Reliable->>Routing: sendAckNak(PKI_DECRYPT_FAILED)
Routing-->>Test: record lastAckError
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
⚡ Try this PR in the Web FlasherWarning This is an automated, unreviewed CI test build. Back up your device configuration Supported boards built by this PR (31)
Build artifacts expire on 2026-08-25. Updated for |
Summary
When an addressed PKI direct message cannot authenticate with a public key already stored for its sender, reply with
PKI_DECRYPT_FAILEDinstead ofNO_CHANNEL.PKI_UNKNOWN_PUBKEYremains the response when the sender key is absent, and ordinary encrypted channel failures still returnNO_CHANNEL.Depends on meshtastic/protobufs#1022.
Validation
pio test -e native-macos -f test_packet_signing(60 passed)pio test -e native-macos -f test_mesh_module(24 passed)pio run -e tbeam-s3-corepio run -e t-echoSummary by CodeRabbit