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

stacklok / toolhive / 45813108991
75%

Build:
DEFAULT BRANCH: main
Ran 26 Nov 2026 11:52AM UTC
Jobs 1
Files 1077
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 11:43AM UTC coverage: 74.443% (+0.04%) from 74.399%
45813108991

push

github

web-flow
Filter SSE list answers on the event stream (#6949)

* Harden POST filter against undecodable results

A POST body that carries a result past encoding/json's depth cap was
written unfiltered. Reject it instead, answering with the request id,
as the GET stream does. Also filter a result split across lone CR line
breaks, and share the no-shape decision between the POST path and the
GET stream so the two cannot drift apart.

* Remove extra blank line at end of response filter

* Share the sniffing decision and SSE event head

* Test the POST path's lone CR fail-closed answer

* Log the SSE filtering of an unlabeled POST body

* Return only the sniff action from the classifier

* Fix the classifier return after the signature change

* Filter SSE list answers on the GET event stream

The GET event stream carried list answers unfiltered. Filter each event
as it arrives, choosing the filter from the shape of its result, with
the same per-entry authorization as the streamable path. Answer rejected
frames with a JSON-RPC error that carries the request id, so the client
does not wait for a timeout. Document the limits: a 16 MiB cap on an
open event, a held body sniffed before it is filtered, and a 101 upgrade
through ReverseProxy, which is refused.

* Share the decision for unlabeled 2xx bodies

The POST path and the GET stream each decided how to handle a 2xx body with an unrecognised media type, in different orders. Move that decision into one classifier. Each caller still writes its own rejection and chooses its own request id, so no response changes.

* Fail closed on tools values that name a tool

A tools value that is a string or object, including a string of JSON
naming a tool, passed the filter unchanged on the GET event stream.
Fail closed on any tools value except a list naming no tool. Drop an
id-less malformed event instead of answering it with an error that
has no id, which would end the client session.

* Tidy the tools-value comment

* Document d... (continued)

578 of 658 new or added lines in 3 files covered. (87.84%)

29 existing lines in 8 files now uncovered.

102109 of 137164 relevant lines covered (74.44%)

987.64 hits per line

Uncovered Changes

Lines Coverage ∆ File
50
88.4
pkg/authz/sse_stream_filter.go
30
86.12
-0.88% pkg/authz/response_filter.go

Coverage Regressions

Lines Coverage ∆ File
6
19.87
-3.97% pkg/client/manager.go
6
72.34
-6.38% pkg/secrets/keyring/keyctl_linux.go
5
86.12
-0.88% pkg/authz/response_filter.go
4
59.21
-0.42% pkg/workloads/manager.go
3
96.34
-3.66% pkg/auth/obo/cache/cache.go
3
76.88
-0.87% pkg/transport/proxy/httpsse/http_proxy.go
1
94.24
0.0% pkg/authserver/storage/memory.go
1
81.58
-0.12% pkg/vmcp/composer/workflow_engine.go
Jobs
ID Job ID Ran Files Coverage
1 45813108991.1 26 Nov 2026 11:52AM UTC 1077
74.44
GitHub Action Run
Source Files on build 45813108991
  • Tree
  • List 1077
  • Changed 13
  • Source Changed 2
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45813108991
  • 46586fae on github
  • Prev Build on main (#45793428050)
  • Next Build on main (#45814641201)
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