Page MenuHomePhabricator

[jobs-api] Prefix all endpoints with `/tool/<toolname>`
Open, HighPublic

Description

Otherwise once we have authentication per-user, we would not be able to know which tool they are acting on (today we authenticate with the tool certificate, so the authenticated user is the tool itself).

Note that the procedure to avoid downtime can be:

  • Change API to support both endpoints (add a check in the API between the path and the auth user for consistency for now)
  • Change the client to use the new url
  • Remove support for the non-prefixed url on the api side

Related Objects

Event Timeline

dcaro triaged this task as High priority.Wed, Apr 24, 3:28 PM
dcaro renamed this task from [jobs-api,builds-api,envvars-api,api-gateway] Prefix all endpoints with `/tool/<toolname>` to [jobs-apii] Prefix all endpoints with `/tool/<toolname>`.Tue, Apr 30, 10:02 AM
dcaro updated the task description. (Show Details)
fnegri renamed this task from [jobs-apii] Prefix all endpoints with `/tool/<toolname>` to [jobs-api] Prefix all endpoints with `/tool/<toolname>`.Wed, May 8, 9:32 AM