Page MenuHomePhabricator

API Gateway doesn't respect mwdebug headers
Closed, ResolvedPublic

Description

The API gateway currently directly requests pages from the appservers, meaning that our standard workflow around using mwdebug to test changes is broken and the only way to verify changes is via curl on the staging instances. This is obviously far from ideal.

The API gateway should interpret and respect the X-Mediawiki-Debug header in order to mimic behaviour used on regular deployments.

Event Timeline

Pchelolo raised the priority of this task from Medium to High.
Pchelolo moved this task from Backlog to Doing on the Platform Team Workboards (Green) board.

I want to retriage this to high. This makes deploys for API Portal very risky since we can't test the patches as we've discovered with @CCicalese_WMF recently. let's fix it.

Change 627588 had a related patch set uploaded (by Ppchelko; owner: Ppchelko):
[operations/deployment-charts@master] Api-gateway: Implement support for X-Wikimedia-Debug header

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

Change 627588 merged by jenkins-bot:
[operations/deployment-charts@master] Api-gateway: Implement support for X-Wikimedia-Debug header

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

@Pchelolo could you explain what this is supposed to do? I'm not familiar with X-Wikimedia-Debug.

Correction, I found it. https://wikitech.wikimedia.org/wiki/WikimediaDebug .

It sounds useful, but... this is the kind of debug functionality that becomes an undocumented feature. I'd like to see it limited by client ID.

It's not a high priority. I added T263029 to track it.

Change 627882 had a related patch set uploaded (by Hnowlan; owner: Hnowlan):
[operations/deployment-charts@master] api-gateway: allow prod instances to hit mwdebug

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

Change 627882 merged by jenkins-bot:
[operations/deployment-charts@master] api-gateway: allow prod instances to hit mwdebug

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

Change 628066 had a related patch set uploaded (by Hnowlan; owner: Hnowlan):
[operations/deployment-charts@master] api-gateway: Add all mwdebug hosts to debug clusters

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

Change 628066 merged by jenkins-bot:
[operations/deployment-charts@master] api-gateway: Add all mwdebug hosts to debug clusters

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

Change 628127 had a related patch set uploaded (by Hnowlan; owner: Hnowlan):
[operations/deployment-charts@master] api-gateway: allow mwdebug hosts in calico

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

Change 628127 merged by jenkins-bot:
[operations/deployment-charts@master] api-gateway: allow mwdebug hosts in calico

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

All mwdebug servers now work in API gateway