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

stacklok / toolhive / 28202472143
67%

Build:
DEFAULT BRANCH: main
Ran 25 Jun 2026 09:51PM UTC
Jobs 1
Files 760
Run time 2min
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

25 Jun 2026 09:45PM UTC coverage: 67.341% (+0.001%) from 67.34%
28202472143

push

github

web-flow
fix(proxy): set X-Forwarded-Proto to upstream scheme for remote proxies (#5646)

* fix(proxy): set X-Forwarded-Proto to upstream scheme for remote proxies

When MCPRemoteProxy runs behind a TLS-terminating load balancer, the
inbound connection to the pod is plain HTTP even though the upstream is
reached over HTTPS. SetXForwarded derived X-Forwarded-Proto from that
inbound hop, so remote HTTPS upstreams that redirect when
X-Forwarded-Proto != https returned a 301 on every request and looped
until the redirect cap, leaving the upstream session uninitialized.

Rewrite X-Forwarded-Proto to the scheme of the actual upstream
connection (the targetURI scheme) for remote proxies, symmetric with the
existing X-Forwarded-Host removal.

Closes #5567

* refactor(proxy): reuse parsed upstream scheme and log X-Forwarded-Proto rewrite

Pass the upstream scheme (parsed once in Start) into setXForwardedHeaders
instead of re-parsing targetURI on every request, removing the dead
error branch. Add a slog.Debug when the X-Forwarded-Proto rewrite is
applied for remote upstreams.

---------

Co-authored-by: Claude <noreply@anthropic.com>

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

5 existing lines in 2 files now uncovered.

69526 of 103245 relevant lines covered (67.34%)

65.91 hits per line

Coverage Regressions

Lines Coverage ∆ File
3
71.85
-1.11% pkg/ignore/processor.go
2
61.95
-0.17% pkg/workloads/manager.go
Jobs
ID Job ID Ran Files Coverage
1 28202472143.1 25 Jun 2026 09:51PM UTC 760
67.34
GitHub Action Run
Source Files on build 28202472143
  • Tree
  • List 760
  • Changed 5
  • Source Changed 1
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28202472143
  • 17d3432f on github
  • Prev Build on main (#28201026170)
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