Page MenuHomePhabricator

Implement basic routing for rest.php
Closed, ResolvedPublic3 Estimated Story Points

Description

Description

As described in T235478, Varnish configuration is needed in order to correctly serve the basic MW REST API endpoints. An initial version can be built by expanding the restBase regex.

Requirements

  • Expand the config handling request URI normalisation to include the MW REST API
  • Config is reveiwed by SRE Traffic Team
  • Config is deployed in prod
  • Endpoints are accessible publicly as expected

Event Timeline

WDoranWMF set the point value for this task to 3.
WDoranWMF moved this task from Next Sprint to Ready on the Platform Team Workboards (Green) board.

Change 545369 had a related patch set uploaded (by Ppchelko; owner: Ppchelko):
[operations/puppet@production] Varnish: don't decode/encode slashes for core REST API paths.

https://gerrit.wikimedia.org/r/545369

Change 545369 had a related patch set uploaded (by Ppchelko; owner: Ppchelko):
[operations/puppet@production] Varnish: don't decode/encode slashes for core REST API paths

https://gerrit.wikimedia.org/r/545369

The patch has been applied in beta cluster, so URIs like https://en.wikipedia.beta.wmflabs.org/w/rest.php/v1/page/User:Pchelolo%2fTest/history work now.

Any help would be much appreciated in testing access for pages with weird symbols (see examples in VCL. Weird are the ones that have 1 or 2 underneath them in that config)

@BBlack @ema would you have anytime to review Petr's patch above?

Change 545369 merged by Ema:
[operations/puppet@production] Varnish: don't decode/encode slashes for core REST API paths

https://gerrit.wikimedia.org/r/545369

@BBlack @ema would you have anytime to review Petr's patch above?

Patch merged.