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

stacklok / toolhive / 26762868986
66%

Build:
DEFAULT BRANCH: main
Ran 01 Jun 2026 03:02PM UTC
Jobs 1
Files 741
Run time 3min
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

01 Jun 2026 02:56PM UTC coverage: 65.888% (-0.005%) from 65.893%
26762868986

push

github

web-flow
Fall back to request-token claims for opaque upstream tokens (#5147)

VirtualMCPServer (Cedar incoming authz) denied every request when the
embedded auth servers upstream provider issues opaque OAuth 2.0 access
tokens (Googles ya29.*, GitHubs gho_*). resolveClaims tried to JWT-parse
the upstream token unconditionally and returned the parse error verbatim,
so every authorization check failed and the gateway skipped every tool.

Discriminate by token shape: if the upstream token is not three dot-
separated segments it cannot be a JWT, so fall back to identity.Claims
(the request-token claims). The embedded auth server already mirrors
the upstream OIDC sub, email and name into its issued AS token (see
pkg/authserver/server/session/session.go), so policies referencing
standard OIDC claims continue to evaluate correctly.

JWT-shaped tokens (three segments) that fail to parse still return the
error: a tampered or corrupted upstream JWT must not silently degrade
to fallback claims.

Closes #5146

Signed-off-by: Cody J. Hanson <cjohnhanson@users.noreply.github.com>
Co-authored-by: Cody J. Hanson <cjohnhanson@users.noreply.github.com>

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

15 existing lines in 3 files now uncovered.

65753 of 99795 relevant lines covered (65.89%)

62.97 hits per line

Coverage Regressions

Lines Coverage ∆ File
6
20.11
-3.45% pkg/client/manager.go
6
76.15
-5.5% pkg/secrets/keyring/keyctl_linux.go
3
70.0
-3.33% pkg/state/local.go
Jobs
ID Job ID Ran Files Coverage
1 26762868986.1 01 Jun 2026 03:02PM UTC 741
65.89
GitHub Action Run
Source Files on build 26762868986
  • Tree
  • List 741
  • Changed 5
  • Source Changed 1
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26762868986
  • bfde12da on github
  • Prev Build on main (#26760031275)
  • Next Build on main (#26763112698)
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

© 2026 Coveralls, Inc