HomePhabricator
Diffusion Comm 044b8239d2c4

[services] Tunnelbroker - Skipping `deviceID` validation in tools function

Description

[services] Tunnelbroker - Skipping deviceID validation in tools function

Summary:
This diff adds skipping of the deviceID format validation in the validateDeviceID tools function by checking the sessions.disable_deviceid_validation config flag (from D6523).

We are disabling the validation of the deviceID format for using the Tunnelbroker as a Redis replacement, in this case, the deviceID format will be different and we should not validate it.

Linear task: ENG-2640

Test Plan:

  1. CI checks are successfully passed.
  2. Manual testing:

Adding the disable_deviceid_validation flag to the [sessions] section of the config file results in always true returns from the validateDeviceID tools function.

Reviewers: jon, bartek

Reviewed By: jon

Subscribers: ashoat, tomek, atul

Differential Revision: https://phab.comm.dev/D6524