Page MenuHomePhabricator

CDN: include x-is-browser in all requests to the backend
Closed, ResolvedPublic

Description

The CDN's Backend API will currently include the x-is-browser header only for trust level E or lower. It would be useful for the REST gateway to get the is-browser score also for authenticated requests (level C), to distinguish between logged-in browser traffic and other logged-in traffic (authenticated bots).

For consistency, it would be nice to also include the x-is-browser header for requests with trust levels A, B, and D, but with a fixed value of 0, since these trust levels explicitly refer to bots.

Details

Event Timeline

daniel triaged this task as High priority.Feb 18 2026, 7:59 PM

@Vgutierrez , this is part of the API rate limiting rollout prep, and we’re trying to confirm whether everything needed for the March 9 phase is on track.

Do you have a sense of current status and expected timeline for this change? Let me know if there’s anything we should be aware of or help unblock.

Change #1247027 had a related patch set uploaded (by Vgutierrez; author: Vgutierrez):

[operations/puppet@production] cache::haproxy: calculate X-I-B for C and E

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

Change #1247027 merged by Vgutierrez:

[operations/puppet@production] cache::haproxy: calculate X-I-B for C and E

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

@Vgutierrez , this is part of the API rate limiting rollout prep, and we’re trying to confirm whether everything needed for the March 9 phase is on track.

Do you have a sense of current status and expected timeline for this change? Let me know if there’s anything we should be aware of or help unblock.

task has been completed and change should be live in ~30 minutes as soon as puppet applies the changes fleet wide