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

stacklok / toolhive / 45179229236
75%

Build:
DEFAULT BRANCH: main
Ran 23 Nov 2026 01:08PM UTC
Jobs 1
Files 1047
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 12:57PM UTC coverage: 73.7% (-0.01%) from 73.713%
45179229236

push

github

web-flow
Merge commit from fork

* Enforce service account in KSA OIDC configs

MCPOIDCConfig of type kubernetesServiceAccount documents serviceAccount
and namespace as selecting whose tokens are validated, but the operator
never read them and the token validator only checked issuer, audience
and expiry. Any pod could request a projected token for the server's
audience and authenticate as an arbitrary service account.

Add RequiredSubject and RequiredSubjectPrefix to the token validator
and enforce them on both the JWT and introspection paths. The resolver
now derives them from the config and the operator passes them to
MCPServer, MCPRemoteProxy and vMCP. Only what is set is enforced:
serviceAccount binds the exact subject (namespace defaults to the
workload's), namespace alone allows any service account in it, and
leaving both empty keeps today's audience-only behaviour, which the
CRD docs now state.

Fixes: ANT-2026-EG8D9O9P

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

* Log rejected subjects and document KSA restriction

Callers that worked before the service account restriction was enforced
now get 401. Log the rejected and required subject at WARN so operators
can see why, and fix the shipped example and architecture doc, which
still described the old defaults.

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

* Bound subject-rejection WARN and validate SA names

Any pod can mint a token for the audience, so an unbounded WARN per
rejection let a caller set log volume. Deduplicate it per subject with
a bounded expirable LRU and log repeats at DEBUG.

Validate serviceAccount and namespace as DNS-1123 names at admission. A
value such as a full system:serviceaccount subject built a subject no
token can carry and silently locked out every caller.

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

* Test subject restriction at the HTTP and introspection paths

The existing subject tests called validateClaims directly, so neither
the ... (continued)

73 of 73 new or added lines in 7 files covered. (100.0%)

51 existing lines in 3 files now uncovered.

98048 of 133037 relevant lines covered (73.7%)

880.02 hits per line

Coverage Regressions

Lines Coverage ∆ File
45
59.21
-4.47% pkg/workloads/manager.go
3
83.93
-0.16% pkg/authserver/storage/redis.go
3
0.0
-100.0% pkg/workloads/sysproc_unix.go
Jobs
ID Job ID Ran Files Coverage
1 45179229236.1 23 Nov 2026 01:08PM UTC 1047
73.7
GitHub Action Run
Source Files on build 45179229236
  • Tree
  • List 1047
  • Changed 17
  • Source Changed 10
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45179229236
  • 5d2fd9a2 on github
  • Prev Build on main (#45151614249)
  • Next Build on main (#45185253501)
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