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

stacklok / toolhive / 46037094118
75%

Build:
DEFAULT BRANCH: main
Ran 27 Nov 2026 05:00PM UTC
Jobs 1
Files 1094
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

27 Nov 2026 04:51PM UTC coverage: 75.087% (+0.03%) from 75.058%
46037094118

push

github

web-flow
Read delegated credentials in upstream_inject (#7355)

* Read delegated credentials in upstream_inject

Resolve delegated upstream access tokens by platform user and provider so sessionless identities can authenticate without a token map. Fail closed on unavailable credentials, preserve reconnect and caller cancellation errors, and leave non-delegated requests and health checks unchanged.

Co-authored-by: Mecatl <noreply@mecatl.dev>

* Test and document delegated upstream reads

Pin upstream_inject behavior in process on Legacy and Modern, including the foreign-issuer guard. Distinguish tools omitted during discovery from tools still advertised when their credential becomes unusable, and document how embedders enable the reader.

Before: missing delegated credentials were classified as ErrAuthenticationFailed at backend authentication. After: a call that reaches delegated upstream authentication returns a provider-named isError result when authorization is required, or JSON-RPC -32603 when the credential is unavailable. An undiscovered tool does not reach that path.

Co-authored-by: Mecatl <noreply@mecatl.dev>

* Warn once on unconfigured delegated reader

Previously, a delegated request reaching an outgoing auth strategy without a configured UserCredentialReader logged only at DEBUG before failing closed with ErrDelegatedCredentialUnavailable, leaving misconfigured embedders silent at default log levels.

Emit one WARN per strategy instance on the first delegated lookup with a nil reader and log subsequent misses at DEBUG so callers cannot drive WARN volume at request rate. Initialize upstreamCredentials in place via pointer receivers so the atomic warning guard is never copied.

Co-authored-by: Mecatl <noreply@mecatl.dev>

* Log delegated read failures by category

The reader contract says error text can carry provider-supplied detail,
but the delegated read logged the raw error at WARN. Log a fixed reason
instead, drop per-user conditions that repe... (continued)

94 of 94 new or added lines in 3 files covered. (100.0%)

2 existing lines in 1 file now uncovered.

105254 of 140176 relevant lines covered (75.09%)

981.57 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
73.19
-0.27% pkg/transport/proxy/streamable/streamable_proxy.go
Jobs
ID Job ID Ran Files Coverage
1 46037094118.1 27 Nov 2026 05:00PM UTC 1094
75.09
GitHub Action Run
Source Files on build 46037094118
  • Tree
  • List 1094
  • Changed 9
  • Source Changed 2
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #46037094118
  • 4d83959d on github
  • Prev Build on main (#46033543114)
  • Next Build on main (#46039903382)
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