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

stacklok / toolhive / 45624839783
75%

Build:
DEFAULT BRANCH: main
Ran 25 Nov 2026 01:42PM UTC
Jobs 1
Files 1067
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

25 Nov 2026 01:33PM UTC coverage: 74.165% (+0.03%) from 74.131%
45624839783

push

github

web-flow
Process the ID-JAG authorization_details claim (#7290)

* Keep the raw authorization_details bytes

Redemption will process the authorization_details claim an ID-JAG
carries, and the issued token must carry the entries exactly as signed.
The claims decoded through map[string]any lose integer precision above
2^53, so verifySignature now also decodes the verified payload into a
map of raw members and keeps the authorization_details bytes in
ValidatedClaims.AuthorizationDetails (nil when absent). A map, not a
struct field, so a member in another letter case does not match.

No behaviour changes: nothing reads the new field yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Process the ID-JAG authorization_details claim

ID-JAG draft section 4.4.1 requires the redeeming server to process the
authorization_details claim the ID-JAG's issuer signed, and a gateway
token narrowed to one MCP call depends on it. Until now redemption
refused every assertion that carried the claim.

The ID-JAG handler now processes the claim after subject resolution and
before the ID-JAG is consumed: a claim that is not a non-empty array of
objects is invalid_assertion; a type not registered for the JWT-bearer
grant (or no registry) is unknown_type; a shape problem is
malformed_entry; the registered hooks decide; and every granted entry
must equal a distinct signed entry as a JSON value, so a hook can drop
whole entries but never change or add one (server_error). The granted
entries go into the access token and the token response from the same
raw bytes, so large integers keep every digit. Narrowing inside an
entry is left to "Narrow authorization_details on token exchange and
refresh" (#6912).

Both redemption forms refuse the authorization_details parameter with
parameter_not_allowed, and the plain RFC 7523 grant keeps refusing the
claim. The hook sees the authenticated client, the granted resource,
the ID-JAG's sub, and a new Subject.ResolvedUser for a resolve iss... (continued)

302 of 314 new or added lines in 17 files covered. (96.18%)

9 existing lines in 3 files now uncovered.

100351 of 135308 relevant lines covered (74.16%)

870.38 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
96.81
-1.34% pkg/authserver/authorizationdetails/authorizationdetails.go
4
95.65
-4.35% pkg/authserver/server/session/session.go
2
97.7
pkg/authserver/server/tokenexchange/redemption_details.go
1
89.96
0.03% pkg/authserver/server/tokenexchange/multi_issuer_validator.go
1
97.56
0.1% pkg/authserver/server/tokenexchange/validator.go

Coverage Regressions

Lines Coverage ∆ File
6
72.34
-6.38% pkg/secrets/keyring/keyctl_linux.go
2
80.0
-5.71% pkg/vmcp/backendregistry/registry.go
1
88.15
0.0% pkg/transport/proxy/transparent/transparent_proxy.go
Jobs
ID Job ID Ran Files Coverage
1 45624839783.1 25 Nov 2026 01:42PM UTC 1067
74.16
GitHub Action Run
Source Files on build 45624839783
  • Tree
  • List 1067
  • Changed 23
  • Source Changed 19
  • Coverage Changed 23
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45624839783
  • 8719e210 on github
  • Prev Build on main (#45617794466)
  • Next Build on main (#45641696927)
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