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)
Fri, Dec 20, 2:38 PM
Unknown Object (File)
Sat, Dec 14, 9:41 PM
Unknown Object (File)
Fri, Dec 6, 3:27 AM
Unknown Object (File)
Thu, Dec 5, 9:05 PM
Unknown Object (File)
Thu, Dec 5, 7:56 AM
Unknown Object (File)
Wed, Dec 4, 11:13 AM
Unknown Object (File)
Thu, Nov 28, 3:30 PM
Unknown Object (File)
Thu, Nov 28, 3:29 PM
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
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