Page MenuHomePhabricator

[lib] Add validator support for 'Unauthenticated' Tunnelbroker message
ClosedPublic

Authored by bartek on Jun 13 2024, 2:44 AM.
Tags
None
Referenced Files
F3395074: D12418.diff
Sun, Dec 1, 1:33 AM
Unknown Object (File)
Thu, Nov 28, 2:52 PM
Unknown Object (File)
Thu, Nov 28, 2:37 PM
Unknown Object (File)
Fri, Nov 1, 10:31 AM
Unknown Object (File)
Fri, Nov 1, 10:31 AM
Unknown Object (File)
Fri, Nov 1, 10:31 AM
Unknown Object (File)
Fri, Nov 1, 10:31 AM
Unknown Object (File)
Sep 25 2024, 10:48 PM
Subscribers

Details

Summary

Addresses ENG-8394.
The Unauthenticated enum variant was missing in client-side validator.

Added a comment to keep that in sync.

Test Plan
  1. Hardcoded setUnauthorizedDeviceID(not-null-value) to keep Tunnelbroker connection anonymous.
  2. Called tunnelbrokerContext.sendMessage()
  3. Verified that invalid TunnelbrokerMessage is no longer occuring

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Jun 13 2024, 10:02 PM
kamil added inline comments.
shared/tunnelbroker_messages/src/messages/message_to_device_request_status.rs
12–13

We already have a general comment one level higher in mod.rs, bur probably adding this here wouldn't hurt

This revision is now accepted and ready to land.Jun 14 2024, 1:44 AM