Page MenuHomePhabricator

[backup][backup-client] Add auth to logs websocket
ClosedPublic

Authored by bartek on Jun 20 2024, 4:56 AM.
Tags
None
Referenced Files
F3353827: D12511.diff
Sat, Nov 23, 11:31 AM
Unknown Object (File)
Fri, Nov 15, 10:27 PM
Unknown Object (File)
Thu, Nov 14, 11:19 AM
Unknown Object (File)
Wed, Nov 13, 5:56 PM
Unknown Object (File)
Fri, Nov 1, 2:26 PM
Unknown Object (File)
Sat, Oct 26, 11:56 AM
Unknown Object (File)
Thu, Oct 24, 2:48 PM
Unknown Object (File)
Thu, Oct 24, 2:44 PM
Subscribers

Details

Summary

Addresses 3 in ENG-8473.

  • Added LogWSResponse::AuthSuccess
  • Modified backup service handler to verify passed UserIdentity
  • Modified backup client to wait for AuthSuccess message after sending auth request.

Depends on D12508

Test Plan

Backup integration tests. Added some logging.
Also tested with COMM_SERVICES_SKIP_CSAT_VERIFICATION - auth message is still required but verification always succeeds.

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 20 2024, 7:19 AM
bartek added inline comments.
services/backup/src/http/handlers/log.rs
61 ↗(On Diff #41565)

Unfortunately we need this to modify this Option from spawned future and read it in the sync fn.
Technically, they're not going block by each other but we need to do it for safety.

Looks good but might be good to get a review from someone else

This revision is now accepted and ready to land.Jun 28 2024, 10:46 AM