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

stacklok / toolhive / 45887516421
75%

Build:
DEFAULT BRANCH: main
Ran 26 Nov 2026 08:09PM UTC
Jobs 1
Files 1083
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

26 Nov 2026 07:57PM UTC coverage: 74.844% (+0.06%) from 74.781%
45887516421

push

github

web-flow
Commit filtered response heads after filtering (#7340)

* Relabel JSON written for a mislabeled POST body

When a filtered POST response carries an unrecognized media type and
the filter answers with JSON in its place, the backend's Content-Length
and Content-Type were left on the head. The stale length truncated the
shorter replacement, and the media type mislabeled it. Clear the
backend's entity headers and set application/json on those routes, and
document the POST path's handling of mislabeled and undecodable bodies.

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

* Commit filtered response heads after filtering

Behind httputil.ReverseProxy with FlushInterval -1, Flush sent the
status and headers before FlushAndFilter ran, so a fail-closed error
reached the client as a 200 with the backend's Content-Type and ETag,
and relabelAsJSON had no effect. Write already buffers the whole body
of a filtered method, so the early commit streamed nothing.

Flush is now a no-op for filtered methods and FlushAndFilter commits the
head once. It drops the backend's Content-Length and trailers, which
describe bytes that are not sent, and error answers are relabeled as
JSON. The Flush-time encoded-body workaround and its latch are removed.

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

* Drop backend entity headers on filtered responses

A content-encoded non-2xx body to a filtered method skipped the filter:
the status check exempted it, and the encoded bytes then failed every
decode and sniff, so a list a client could decode passed through. Every
encoded body is now replaced with the generic JSON-RPC error. A non-2xx
keeps its status, so an expired-session 404 still reaches the client.

A filtered body was also written with the backend's ETag, Last-Modified,
and digests, which describe the unfiltered bytes. FlushAndFilter now
drops the backend's entity headers once for every filtered method.

Co-Authored-By: Claude Opu... (continued)

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

399 existing lines in 15 files now uncovered.

103685 of 138535 relevant lines covered (74.84%)

985.88 hits per line

Coverage Regressions

Lines Coverage ∆ File
81
89.44
0.36% pkg/authserver/runner/embeddedauthserver.go
77
85.24
0.03% pkg/authserver/server_impl.go
65
85.23
0.72% pkg/vmcp/client/client.go
48
89.33
0.31% pkg/auth/token.go
40
96.42
0.01% pkg/authserver/config.go
23
73.38
1.34% pkg/authserver/server/handlers/device_verification.go
20
92.53
0.03% pkg/authserver/server/handlers/handler.go
18
95.5
0.29% pkg/authserver/server/handlers/callback.go
9
96.79
1.57% pkg/authserver/refresher.go
6
72.34
-6.38% pkg/secrets/keyring/keyctl_linux.go
3
98.21
0.04% pkg/authserver/refresh_grant_guard.go
3
86.04
-0.08% pkg/authz/response_filter.go
2
98.23
-1.77% pkg/authserver/storage/user_keyed_upstream.go
2
99.22
0.03% pkg/auth/upstreamtoken/service.go
2
91.94
-1.61% pkg/vmcp/aggregator/caching_aggregator.go
Jobs
ID Job ID Ran Files Coverage
1 45887516421.1 26 Nov 2026 08:09PM UTC 1083
74.84
GitHub Action Run
Source Files on build 45887516421
  • Tree
  • List 1083
  • Changed 20
  • Source Changed 15
  • Coverage Changed 20
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45887516421
  • c36c1858 on github
  • Prev Build on main (#45864323514)
  • Next Build on main (#45903316458)
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