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

stacklok / toolhive / 45253521197
75%

Build:
DEFAULT BRANCH: main
Ran 23 Nov 2026 08:00PM UTC
Jobs 1
Files 1056
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 07:52PM UTC coverage: 73.913% (+0.2%) from 73.738%
45253521197

push

github

web-flow
Support Entra on-behalf-of backend auth in OSS (#7201)

* Support Entra OBO backend auth in OSS

Microsoft Entra on-behalf-of was a working strategy only in the private
enterprise overlay; OSS builds exposed the CRD but every dispatch point
returned ErrEnterpriseRequired or a 503 stub. Make it a built-in
strategy for MCPServer, MCPRemoteProxy, VirtualMCPServer and
MCPServerEntry backends (issue #7199):

- Port the Entra exchanger, token cache and exchange contract into
  pkg/auth/obo/{entra,cache,exchange}, kept free of Kubernetes imports
  (guard test), and make the real middleware the default factory.
- Validate obo configs, build the RunConfig middleware and mount the
  client secret in controllerutil. Reject an MCPServer or MCPRemoteProxy
  that references obo without oidcConfigRef as InvalidConfig.
- Add the real vMCP converter and strategy. Mount each OBO backend's
  secret in the vMCP pod under a per-config env var so two OBO backends
  no longer collide on TOOLHIVE_OBO_CLIENT_SECRET.
- Keep RegisterOBOHandler, obo.RegisterFactory, RegisterOBOStrategy,
  ErrEnterpriseRequired and ConditionReasonEnterpriseRequired as
  deprecated overrides so the enterprise overlay keeps compiling until
  it is removed (#7200).

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

* Return 502 when the Entra endpoint times out

The HTTP client's own timeout matches context.DeadlineExceeded, so the
exchanger reported it as caller cancellation and the OBO middleware
wrote no response, giving a still-connected client an empty 200. Only
treat a context error as cancellation when the caller's context is
done; a token endpoint timeout is now a transient failure (502).

Also rename the vMCP env var helper to GenerateUniqueOBOSecretEnvVarName,
the name the issue specifies.

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

* Fix codespell findings in OBO code

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

* Regenerate swagger and SDK for schema ord... (continued)

942 of 970 new or added lines in 26 files covered. (97.11%)

18 existing lines in 5 files now uncovered.

99026 of 133976 relevant lines covered (73.91%)

874.78 hits per line

Uncovered Changes

Lines Coverage ∆ File
10
94.44
pkg/auth/obo/entra/exchanger.go
6
95.08
cmd/thv-operator/pkg/controllerutil/obo.go
4
85.26
0.41% pkg/runner/middleware.go
3
96.34
pkg/auth/obo/cache/cache.go
2
92.59
pkg/auth/obo/entra/errors.go
2
98.74
pkg/vmcp/auth/strategies/obo.go
1
75.25
0.38% cmd/thv-operator/controllers/mcpremoteproxy_controller.go

Coverage Regressions

Lines Coverage ∆ File
6
19.87
-3.97% pkg/client/manager.go
6
59.0
-0.62% pkg/workloads/manager.go
3
64.29
-21.43% pkg/authserver/upstream/tokens.go
2
94.81
-2.6% pkg/vmcp/auth/converters/interface.go
1
96.77
-3.23% pkg/foreach/foreach.go
Jobs
ID Job ID Ran Files Coverage
1 45253521197.1 23 Nov 2026 08:00PM UTC 1056
73.91
GitHub Action Run
Source Files on build 45253521197
  • Tree
  • List 1056
  • Changed 35
  • Source Changed 25
  • Coverage Changed 33
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45253521197
  • 5b002a9d on github
  • Prev Build on main (#45221577610)
  • Next Build on main (#45262165136)
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