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

stacklok / toolhive / 46467670301
75%

Build:
DEFAULT BRANCH: main
Ran 30 Nov 2026 05:07PM UTC
Jobs 1
Files 1080
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

30 Nov 2026 04:56PM UTC coverage: 75.273% (+0.01%) from 75.263%
46467670301

push

github

web-flow
Reject mutating webhook patches that rewrite tool name or method (#6938)

* Reject mutating webhook patches that rewrite tool name or method

Tool filtering and rate limiting run before mutation, so allowing
/mcp_request/params/name or /mcp_request/method patches would bypass
those controls. Fail closed at patch scope validation and update tests.

Fixes #6134

* Reject mutating patches that change call identity

The path-based guard only rejected patches targeting /mcp_request/method
or /mcp_request/params/name and their descendants, so replacing the
whole params object (or remove+add, or move/copy into it) still renamed
the tool after the tool filter and rate limiter had approved it.

Compare the decoded method and params.name before and after each
webhook's patch instead, which covers every patch shape and still
allows read-only ops such as test. Update the middleware docs and the
CLI ordering note that described renames as a known gap.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Reject call-changing patches under either policy

A patch that changes the method or tool name is the webhook's explicit
decision, not an operational failure, so dropping it under the ignore
policy would run the call the webhook asked not to run. Treat it like an
explicit denial and reject it regardless of failure policy.

Also restore the ContentLength assertion lost with the rename tests; it
was the only check that the mutated body length is propagated.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Chris Burns <29541485+ChrisJBurns@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

21 of 21 new or added lines in 2 files covered. (100.0%)

5 existing lines in 3 files now uncovered.

105215 of 139778 relevant lines covered (75.27%)

993.83 hits per line

Coverage Regressions

Lines Coverage ∆ File
3
84.53
-0.16% pkg/authserver/storage/redis.go
1
97.3
-2.7% pkg/foreach/foreach.go
1
82.25
-0.12% pkg/vmcp/composer/workflow_engine.go
Jobs
ID Job ID Ran Files Coverage
1 46467670301.1 30 Nov 2026 05:07PM UTC 1080
75.27
GitHub Action Run
Source Files on build 46467670301
  • Tree
  • List 1080
  • Changed 10
  • Source Changed 3
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #46467670301
  • d342151e on github
  • Prev Build on main (#46464383882)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc