Page MenuHomeSoftware Heritage

varnish: simplify host header handling
ClosedPublic

Authored by olasd on Apr 27 2022, 5:08 PM.

Details

Summary
  • always downcase and trim the port number of inbound host headers;
  • only check aliases and servername once in vcl_recv; set a variable for matching in further vcl_* functions;
  • ensure all further vcl_* functions indeed use the variable for matching
Test Plan

testing this in vagrant admin-rp1 worked fine

Diff Detail

Repository
rSPSITE puppet-swh-site
Branch
production
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 28908
Build 45181: arc lint + arc unit