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)
Wed, Jun 12, 2:17 PM
Unknown Object (File)
Tue, Jun 11, 1:58 PM
Unknown Object (File)
Mon, Jun 10, 8:42 AM
Unknown Object (File)
Sun, Jun 9, 8:00 AM
Unknown Object (File)
Sat, Jun 8, 9:33 AM
Unknown Object (File)
Sat, Jun 8, 7:01 AM
Unknown Object (File)
Sat, Jun 8, 4:39 AM
Unknown Object (File)
Thu, Jun 6, 8:19 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