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

stacklok / toolhive / 45207547415
75%

Build:
DEFAULT BRANCH: main
Ran 23 Nov 2026 03:49PM UTC
Jobs 1
Files 1048
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

23 Nov 2026 03:38PM UTC coverage: 73.737% (-0.03%) from 73.767%
45207547415

push

github

web-flow
Send KSA service account token only to the in-cluster API server (#7248)

* Send KSA token only to the in-cluster API server

For kubernetesServiceAccount MCPOIDCConfigs, useClusterAuth defaults to
true and attached the workload's own service account token to every
OIDC discovery, JWKS and introspection request, whatever host the
issuer, jwksUrl or introspectionUrl named. The token was added so
workloads could fetch the API server's JWKS, but it carries the
workload's Role (statefulset management for the proxy runner, secret
reads for vMCP), so it should not reach any other host.

With useClusterAuth unset, attach the token only when the issuer and any
explicit JWKS or introspection URL are https URLs on the exact in-cluster
API server names. The CA bundle and private-IP allowance are unchanged.
An explicit useClusterAuth: true keeps sending the token everywhere, for
issuers behind a custom cluster domain, and false still sends nothing.

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

* Gate the KSA token on the URL actually fetched

When jwksUrl is set the validator skips discovery and never contacts the
issuer, so requiring an in-cluster issuer as well withheld the token
from an in-cluster JWKS endpoint configured with an external issuer.
Introspection never carries the token for these configs, because they
have no client credentials. Check jwksUrl when set, otherwise the issuer,
and describe the guarantee as what the code checks.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

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

53 existing lines in 4 files now uncovered.

98151 of 133109 relevant lines covered (73.74%)

878.76 hits per line

Coverage Regressions

Lines Coverage ∆ File
47
59.63
-4.89% pkg/workloads/manager.go
3
0.0
-100.0% pkg/workloads/sysproc_unix.go
2
67.14
-2.86% pkg/state/runconfig.go
1
96.77
-3.23% pkg/foreach/foreach.go
Jobs
ID Job ID Ran Files Coverage
1 45207547415.1 23 Nov 2026 03:49PM UTC 1048
73.74
GitHub Action Run
Source Files on build 45207547415
  • Tree
  • List 1048
  • Changed 9
  • Source Changed 2
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45207547415
  • 710ce6d6 on github
  • Prev Build on main (#45196115146)
  • Next Build on main (#45216681093)
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