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
Unknown Object (File)
Mon, Dec 16, 7:21 PM
Unknown Object (File)
Mon, Dec 16, 7:21 PM
Unknown Object (File)
Mon, Dec 16, 7:21 PM
Unknown Object (File)
Mon, Dec 16, 7:06 PM
Unknown Object (File)
Thu, Dec 12, 5:30 PM
Unknown Object (File)
Sun, Dec 8, 7:52 AM
Unknown Object (File)
Nov 27 2024, 9:06 AM
Unknown Object (File)
Nov 23 2024, 2:58 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
Branch
barthap/dns
Lint
No Lint Coverage
Unit
No Test Coverage

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

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