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

stacklok / toolhive / 23680747332
65%

Build:
DEFAULT BRANCH: main
Ran 28 Mar 2026 07:59AM UTC
Jobs 1
Files 585
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

28 Mar 2026 07:53AM UTC coverage: 65.44% (+0.009%) from 65.431%
23680747332

push

github

web-flow
Implement upstream_inject strategy and SubjectProviderName (#4390)

* Implement upstream_inject strategy and SubjectProviderName for #4145

Phase 2 of RFC-0054: add the upstream_inject outgoing auth strategy
that injects per-provider upstream IDP tokens into backend requests,
and extend token_exchange to source its subject token from
identity.UpstreamTokens when SubjectProviderName is configured.

- Add UpstreamTokens stub field to Identity with MarshalJSON redaction
- Add UpstreamInjectStrategy (stateless, follows header_injection pattern)
- Extend TokenExchangeStrategy to resolve subject token from upstream
  tokens when SubjectProviderName is set, falling back to identity.Token
- Register upstream_inject in the outgoing auth factory

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Replace IIFE with plain if/else for subject token selection

The anonymous function returning (string, error) obscured control flow
without benefit — error returns exit the closure, not the method. Plain
if/else is idiomatic and matches the rest of the codebase.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Regenerate CRD manifests and docs after rebase

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

81 of 92 new or added lines in 4 files covered. (88.04%)

18 existing lines in 5 files now uncovered.

52625 of 80417 relevant lines covered (65.44%)

63.29 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
72.41
-1.5% pkg/vmcp/auth/factory/outgoing.go
9
64.45
-0.44% cmd/thv-operator/controllers/virtualmcpserver_controller.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
95.68
-1.44% pkg/vmcp/composer/template_expander.go
3
79.9
-0.26% pkg/transport/proxy/httpsse/http_proxy.go
3
43.98
-0.66% pkg/transport/stdio.go
5
64.45
-0.44% cmd/thv-operator/controllers/virtualmcpserver_controller.go
5
82.81
0.0% pkg/vmcp/composer/workflow_engine.go
Jobs
ID Job ID Ran Files Coverage
1 23680747332.1 28 Mar 2026 07:59AM UTC 585
65.44
GitHub Action Run
Source Files on build 23680747332
  • Tree
  • List 585
  • Changed 9
  • Source Changed 3
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23680747332
  • e3c605fb on github
  • Prev Build on main (#23664634987)
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