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

stacklok / toolhive / 45789352311
75%

Build:
DEFAULT BRANCH: main
Ran 26 Nov 2026 09:20AM UTC
Jobs 1
Files 1076
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 09:09AM UTC coverage: 74.369% (+0.05%) from 74.324%
45789352311

push

github

web-flow
Bind delegated sessions to client and actor (#7315)

* Bind delegated sessions in sessionbinding

Extend pkg/auth/sessionbinding so delegated identities bind sessions to
issuer, user subject, the delegated route tag, client_id, and the
outermost actor (act.iss and act.sub) when present, while keeping
interactive and unspecified bindings byte-identical to the two-field
form and failing closed on unknown routes or malformed actor claims.

Parse preserves its exported signature and validates both standard and
delegated bindings while Validate compares the full binding string in
constant time. Frozen v0.69.0 tests confirm older replicas reject the
extended format during rolling upgrades.

Co-authored-by: Mecatl <noreply@mecatl.dev>

* Enforce delegated binding in vMCP sessions

Route vMCP session binding extraction through pkg/auth/sessionbinding so
delegated sessions carry client_id, actor, and route metadata on creation
and restore, matching the shared ownership middleware.

Harden ShouldAllowAnonymous and anonymous-session upgrade checks against
synthetic tokenless delegated identities, extract security.ResolveBinding
so makeSession fails fast before dialing backends on unbindable
identities, and omit raw binding values from RestoreSession errors.

Co-authored-by: Mecatl <noreply@mecatl.dev>

* Test delegated binding on vMCP and proxies

Add end-to-end ownership tests verifying delegated session binding across
Legacy vMCP HTTP routes, direct enforceSessionBinding calls, streamable
and transparent MCPServer proxies, and local/Redis session storage.

Cover wrong client_id, wrong actor issuer or subject, cross-route
interactive and delegated mismatches, renewed delegated tokens with
different jti/exp/authorization_details, rejection log reasons without
PII, and multi-NUL exact matching versus prefix rejection in storage.

Co-authored-by: Mecatl <noreply@mecatl.dev>

* Document delegated session binding

Document the four- and six-field delegated session b... (continued)

123 of 124 new or added lines in 5 files covered. (99.19%)

122 existing lines in 10 files now uncovered.

101513 of 136499 relevant lines covered (74.37%)

869.16 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
88.82
0.05% pkg/auth/token.go

Coverage Regressions

Lines Coverage ∆ File
39
89.08
0.0% pkg/authserver/runner/embeddedauthserver.go
27
93.76
0.03% pkg/authserver/server/tokenexchange/refresh_token_handler.go
15
85.19
0.02% pkg/authserver/server_impl.go
14
96.41
0.0% pkg/authserver/config.go
8
96.38
-0.82% pkg/authserver/server/tokenexchange/id_jag_mint.go
6
96.88
0.07% pkg/authserver/authorizationdetails/authorizationdetails.go
6
89.47
0.0% pkg/authserver/server/tokenexchange/factory.go
3
96.74
-0.32% pkg/vmcp/session/factory.go
2
91.94
-1.61% pkg/vmcp/aggregator/caching_aggregator.go
2
80.0
-5.71% pkg/vmcp/backendregistry/registry.go
Jobs
ID Job ID Ran Files Coverage
1 45789352311.1 26 Nov 2026 09:20AM UTC 1076
74.37
GitHub Action Run
Source Files on build 45789352311
  • Tree
  • List 1076
  • Changed 27
  • Source Changed 18
  • Coverage Changed 26
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45789352311
  • 619c1608 on github
  • Prev Build on main (#45781035966)
  • Next Build on main (#45793428050)
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