Page MenuHomePhabricator

[services] [6/n] authentication for search websocket server
ClosedPublic

Authored by will on Dec 22 2023, 12:25 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 17, 1:41 PM
Unknown Object (File)
Sun, Dec 15, 6:49 PM
Unknown Object (File)
Sun, Dec 15, 6:49 PM
Unknown Object (File)
Sun, Dec 15, 6:49 PM
Unknown Object (File)
Sun, Dec 15, 6:49 PM
Unknown Object (File)
Sun, Dec 15, 6:48 PM
Unknown Object (File)
Sun, Dec 15, 6:48 PM
Unknown Object (File)
Fri, Dec 13, 1:23 PM
Subscribers

Details

Summary

Authentication verification for websocket connections to search websocket server.
Current implementation maintains connections must provide userID, deviceID, and accessToken.

Depends on D10392

Test Plan

Verified on staging with successful authentication and error messages

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Dec 22 2023, 12:38 AM
Harbormaster failed remote builds in B25312: Diff 34959!
will requested review of this revision.Dec 22 2023, 12:40 AM

Just saw

I think we should stick to either "unauth/auth" or "authenticated/unauthenticated" everywhere: in file names, package and module names. Mixing long and short form doesn't feel right. I vote for the short form.

Will take that into account

will planned changes to this revision.Jan 3 2024, 1:49 PM

Rebase with error messages introduced in [5/n]

varun added inline comments.
services/identity/src/websockets/mod.rs
179–331 ↗(On Diff #35178)

this function is very long. can you please create a linear task to break this up?

This revision is now accepted and ready to land.Jan 3 2024, 11:53 PM