Page MenuHomePhabricator

rest gateway: include x-wmf-* headers in response
Closed, ResolvedPublic

Description

Some x-wmf-* headers should be included in the response so it can be captured by haproxy for analytics purposes.

For now, the following headers should be returned:

  • x-wmf-ratelimit-class
  • x-wmf-user-id (postponed due to privacy concerns; MW to expose auth type instead, see T418606)
NOTE: These headers should NOT be exposed to the client, so haproxy should filter them out (T417781)

Event Timeline

Moving to MWI Radar, as MWP & SRE should be responsible for this.

daniel renamed this task from rest gateway: include x-wmf-ratelimit-class header in response to rest gateway: include x-wmf-* headers in response.Feb 19 2026, 9:39 AM
daniel updated the task description. (Show Details)

Change #1240388 had a related patch set uploaded (by Daniel Kinzler; author: Daniel Kinzler):

[operations/deployment-charts@master] rest gateway: expose headers

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

daniel changed the task status from Open to In Progress.Feb 19 2026, 9:49 AM

Change #1240388 merged by jenkins-bot:

[operations/deployment-charts@master] rest gateway: expose x-wmf-ratelimit-class in response

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

merged and deployed