Page MenuHomePhabricator

[keyserver] Separate webapp and keyserver endpoints
ClosedPublic

Authored by michal on Oct 11 2023, 9:21 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 25, 12:05 AM
Unknown Object (File)
Sun, Nov 24, 11:57 PM
Unknown Object (File)
Sun, Nov 24, 11:29 PM
Unknown Object (File)
Sat, Nov 9, 11:22 PM
Unknown Object (File)
Sat, Nov 9, 6:57 PM
Unknown Object (File)
Fri, Nov 8, 12:29 AM
Unknown Object (File)
Fri, Nov 8, 12:28 AM
Unknown Object (File)
Fri, Nov 8, 12:28 AM
Subscribers

Details

Summary

Part of ENG-5153
Depends on D9451

Finally we can split the endpoints:

  • webapp only hosts html, css, js and other related files
  • keyserver contains keyserver logic, websocket etc.

We need to add a redirect for uploads from the webapp to the keyserver because previously the urls had the origin of web.comm.app instead of squadcal.com. As mentioned in the previous diff I don't think it's worth migrating them because:

  • we still need to support older clients with old urls
  • we will be migrating to blob in the future anyway

Note: landing this diff needs to be delayed like D9291, because web clients need to be reloaded to connect to squadcal

Test Plan
  • check that the web and native apps still work
  • check that media with /webapp/ and /comm/ urls still work

Diff Detail

Repository
rCOMM Comm
Branch
arcpatch-D9452
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

This revision is now accepted and ready to land.Oct 16 2023, 3:54 AM

Do we retire the use of the commAppRouter and squadCalRouter names in a later diff?

keyserver/src/keyserver.js
141 ↗(On Diff #32222)

Should this comment be updated? squadCalBaseRoutePath will probably be confusing to read

Fixed remaining comment, thanks for catching that

Setting as "plan changes" because it needs to be defered for a while to let web clients migrate (start using squadcal endpoints instead of web.comm.app).

This revision is now accepted and ready to land.Nov 27 2023, 5:53 AM