Page MenuHomePhabricator

[keyserver] Separate webapp and keyserver endpoints
ClosedPublic

Authored by michal on Oct 11 2023, 9:21 AM.
Tags
None
Referenced Files
F2896119: D9452.diff
Fri, Oct 4, 7:23 PM
Unknown Object (File)
Sat, Sep 28, 7:25 PM
Unknown Object (File)
Tue, Sep 17, 6:10 AM
Unknown Object (File)
Tue, Sep 10, 6:33 AM
Unknown Object (File)
Tue, Sep 10, 6:33 AM
Unknown Object (File)
Tue, Sep 10, 6:33 AM
Unknown Object (File)
Tue, Sep 10, 6:33 AM
Unknown Object (File)
Tue, Sep 10, 6:33 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
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