• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / toolhive / 21778470428
61%

Build:
DEFAULT BRANCH: main
Ran 07 Feb 2026 10:22AM UTC
Jobs 1
Files 509
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

07 Feb 2026 10:14AM UTC coverage: 60.976% (+0.007%) from 60.969%
21778470428

push

github

web-flow
fix(proxy): Rewrite Host header for backends with strict host validation (#3688)

* Fix Host header rewriting for backends with strict host validation

The transparent proxy was only rewriting the Host header for remote
deployments (isRemote=true), but not for Kubernetes deployments.
This caused backends with strict host validation (like Django's
ALLOWED_HOSTS or FastAPI's TrustedHostMiddleware) to reject requests
because they received the Kubernetes service DNS name as the Host
header instead of their own hostname.

The fix removes the isRemote condition so the Host header is always
rewritten to match the target URL, ensuring compatibility with strict
host validation regardless of deployment type.

Also adds an Address() method to TransparentProxy for testing purposes.

Fixes: https://github.com/stacklok/stacklok-epics/issues/231
Co-authored-by: Cursor <cursoragent@cursor.com>

* cleanup

Signed-off-by: Jeremy Drouillard <jeremy@stacklok.com>

---------

Signed-off-by: Jeremy Drouillard <jeremy@stacklok.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

7 of 7 new or added lines in 1 file covered. (100.0%)

5 existing lines in 2 files now uncovered.

41653 of 68311 relevant lines covered (60.98%)

77.73 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
71.43
-1.68% pkg/vmcp/k8s/manager.go
3
71.85
-1.11% pkg/ignore/processor.go
Jobs
ID Job ID Ran Files Coverage
1 21778470428.1 07 Feb 2026 10:22AM UTC 509
60.98
GitHub Action Run
Source Files on build 21778470428
  • Tree
  • List 509
  • Changed 5
  • Source Changed 1
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21778470428
  • ee0a4eb8 on github
  • Prev Build on main (#21763655270)
  • Next Build on main (#21784348915)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc