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

stacklok / toolhive / 19178688182
51%

Build:
DEFAULT BRANCH: main
Ran 07 Nov 2025 07:19PM UTC
Jobs 1
Files 360
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

07 Nov 2025 07:14PM UTC coverage: 48.915% (+0.02%) from 48.897%
19178688182

push

github

web-flow
Add Flusher interface to audit and authz middlewares (#2512)

Fixes #2509

The audit and authorization middleware responseWriter wrappers were
not implementing the http.Flusher interface, causing "Streaming not
supported" errors when using streamable-http proxy mode.

The streamable-http proxy checks for http.Flusher support when clients
send requests with Accept: text/event-stream header (per-request
streaming per MCP spec). When audit or authz middlewares wrapped the
ResponseWriter without implementing Flusher, the type assertion failed.

Changes:
- Add Flush() method to audit middleware responseWriter that delegates
  to the underlying ResponseWriter if it supports flushing
- Add Flush() method to authz ResponseFilteringWriter following the
  same pattern
- Rename authz ResponseFilteringWriter.Flush() to FlushAndFilter() to
  avoid confusion with the http.Flusher interface method
- Update authz tests to use FlushAndFilter()

This fix ensures streamable-http proxy mode works correctly when audit
or authz middlewares are enabled.

Signed-off-by: Dan Barr <6922515+danbarr@users.noreply.github.com>
Co-authored-by: Dan Barr <6922515+danbarr@users.noreply.github.com>

6 of 10 new or added lines in 3 files covered. (60.0%)

23117 of 47260 relevant lines covered (48.91%)

36.13 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
82.49
-0.99% pkg/audit/auditor.go
Jobs
ID Job ID Ran Files Coverage
1 19178688182.1 07 Nov 2025 07:19PM UTC 360
48.91
GitHub Action Run
Source Files on build 19178688182
  • Tree
  • List 360
  • Changed 6
  • Source Changed 3
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19178688182
  • 4e9dc607 on github
  • Prev Build on main (#19178668920)
  • Next Build on main (#19178928151)
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

© 2025 Coveralls, Inc