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
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
Unknown Object (File)
Sep 25 2024, 10:48 PM
Unknown Object (File)
Sep 25 2024, 10:48 PM
Unknown Object (File)
Sep 25 2024, 10:47 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
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #41273)

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