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

stacklok / toolhive / 23041807322
64%

Build:
DEFAULT BRANCH: main
Ran 13 Mar 2026 08:09AM UTC
Jobs 1
Files 554
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

13 Mar 2026 08:04AM UTC coverage: 64.367% (-0.06%) from 64.424%
23041807322

push

github

web-flow
fix(vmcp): apply outgoing auth credentials during health checks (#4101) (#4118)

Health check probes were sent unauthenticated to backend MCPServers
because both auth strategies short-circuited on the health-check context
marker before injecting any credentials.

HeaderInjectionStrategy: remove the early return — static headers have no
dependency on user identity and must be injected for all requests,
including probes.

TokenExchangeStrategy: instead of a blanket skip, perform an OAuth2
client_credentials grant when client_id + client_secret are configured,
so the health probe carries a valid Bearer token. When credentials are
not configured the probe is still sent unauthenticated (unchanged
behaviour for that case).

Unit tests are updated / added to cover both the fixed header-injection
path and the two token-exchange health-check branches (with and without
client credentials). E2E tests are added in
test/e2e/thv-operator/virtualmcp for both auth strategies, including a
new DeployMockOAuth2ServerWithNodePort helper that lets the test assert
client_credentials grants were actually made to the token endpoint.

Closes: #4101

Co-authored-by: taskbot <taskbot@users.noreply.github.com>

19 of 23 new or added lines in 1 file covered. (82.61%)

50 existing lines in 8 files now uncovered.

48477 of 75314 relevant lines covered (64.37%)

72.91 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
96.63
-2.13% pkg/vmcp/auth/strategies/tokenexchange.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
82.83
-0.26% pkg/vmcp/composer/workflow_engine.go
2
71.43
-1.68% pkg/vmcp/k8s/manager.go
3
71.85
-1.11% pkg/ignore/processor.go
4
80.53
-0.88% pkg/transport/proxy/transparent/transparent_proxy.go
6
76.15
-5.5% pkg/secrets/keyring/keyctl_linux.go
8
23.56
-4.6% pkg/client/manager.go
11
68.42
-14.47% pkg/client/discovery.go
14
74.44
-5.19% pkg/client/config.go
Jobs
ID Job ID Ran Files Coverage
1 23041807322.1 13 Mar 2026 08:09AM UTC 554
64.37
GitHub Action Run
Source Files on build 23041807322
  • Tree
  • List 554
  • Changed 13
  • Source Changed 2
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23041807322
  • 6578f216 on github
  • Prev Build on main (#23027222286)
  • Next Build on main (#23041861605)
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