HomePhabricator
Diffusion Comm cc457d50583f

[Identity] Allow for tunnelbroker endpoint to be configured

Description

[Identity] Allow for tunnelbroker endpoint to be configured

Summary:
Identity service needs some way to communicate with tunnelbroker
when issueing device requests. Currently this is limited to just
"refresh onetime keys", however, will likely include more messages in the
future.

https://linear.app/comm/issue/ENG-4583

Depends on D8722

Test Plan:

cd services/identity
cargo run -- server
# Should see output that it's falling back to localhost

export TUNNELBROKER_GRPC_ENDPOINT=https://tunnelbroker.staging.commtechnologies.org:50051
cargo run -- server
# Should see output that it's now using the other endpoint

Reviewers: bartek, varun

Reviewed By: bartek

Subscribers: ashoat, tomek

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

Details

Provenance
jonAuthored on Aug 3 2023, 10:25 AM
Reviewer
bartek
Differential Revision
D8723: [Identity] Allow for tunnelbroker endpoint to be configured
Parents
rCOMMc107c9ad68bc: [Identity] Add some utilties with manipulating DDB results
Branches
Unknown
Tags
Unknown