Page MenuHomePhabricator

Move host normalization to haproxy
Closed, ResolvedPublic

Description

We currently have both <host> and <host>:<port> in webrequest log (eg. upload.wikimedia.org and upload.wikimedia.org:443).

Host normalization should be moved from varnish configuration to haproxy

This is for reference the code in Varnish that would be deleted/update:
https://github.com/wikimedia/operations-puppet/blob/production/modules/varnish/templates/wikimedia-frontend.vcl.erb#L265

  • move logic to haproxy
  • remove unused varnish function

Event Timeline

Change #1148373 had a related patch set uploaded (by Fabfur; author: Fabfur):

[operations/puppet@production] haproxy: normalize host header

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

Change #1148373 merged by Fabfur:

[operations/puppet@production] haproxy: normalize host header

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

Fabfur changed the task status from Open to In Progress.Jun 9 2025, 9:04 AM
Fabfur updated the task description. (Show Details)

Change #1191010 had a related patch set uploaded (by Fabfur; author: Fabfur):

[operations/puppet@production] varnish: remove Host header normalization

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

Change #1191010 merged by Fabfur:

[operations/puppet@production] varnish: remove Host header normalization

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

Fabfur updated the task description. (Show Details)