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

stacklok / toolhive / 45597106575
75%

Build:
DEFAULT BRANCH: main
Ran 25 Nov 2026 10:50AM UTC
Jobs 1
Files 1066
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

25 Nov 2026 10:39AM UTC coverage: 74.123% (+0.03%) from 74.093%
45597106575

push

github

web-flow
Record how a token was admitted on Identity (#7287)

* Classify the admission route of a token

Part C of "Ownership-checked credential read for delegated tokens,
keyed by user and routed provider" (#6407) needs to know how a request
got in before it reads a user's stored credential: through an
interactive sign-in or a delegated (marked) token. Add an
AdmissionRoute type and field on Identity, and a classifier on the
token validator that decides it from the validated claims.

The classifier only answers on a validator bound to the embedded
authorization server. Interactive means a usable tsid, no
delegated-access marker and no proof of a session-less mint. Delegated
means the marker without a usable tsid, and also requires a configured
audience, so the token's aud was checked. Every other token, including
one carrying both a tsid and the marker, stays unspecified and reads
nothing. The proof of a session-less mint is the one isSessionlessGrant
uses, so the two never disagree; the binding check and that proof move
into helpers both share.

Nothing calls the classifier yet; the middleware wiring follows.

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

* Tie admission provenance to the verifying key

The admission route and SessionlessGrant both say how a token was
minted by the embedded authorization server. A validator bound to that
server can also have an introspection URL, and the claims an
introspection response returns are copied verbatim: a response naming
the embedded issuer with no_upstream_session, tsid or the
delegated-access marker would otherwise pass as if our server had
signed it.

ValidateToken now wraps an unexported validateToken that also reports
how far the claims can be vouched for: not at all (introspection), a
verified signature from some key set, or a verified signature from the
embedded server's in-process key provider. Introspected claims never
set SessionlessGrant and never get a route. The exported ValidateToken
is unchanged.

T... (continued)

58 of 65 new or added lines in 1 file covered. (89.23%)

92 existing lines in 6 files now uncovered.

100098 of 135044 relevant lines covered (74.12%)

871.54 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
88.69
0.53% pkg/auth/token.go

Coverage Regressions

Lines Coverage ∆ File
27
93.24
0.11% pkg/authserver/server/handlers/callback.go
27
84.13
0.19% pkg/authserver/storage/redis.go
25
72.04
1.86% pkg/authserver/server/handlers/device_verification.go
10
92.58
0.12% pkg/authserver/server/handlers/handler.go
2
97.66
0.0% pkg/authserver/storage/types.go
1
94.39
0.14% pkg/authserver/storage/memory.go
Jobs
ID Job ID Ran Files Coverage
1 45597106575.1 25 Nov 2026 10:50AM UTC 1066
74.12
GitHub Action Run
Source Files on build 45597106575
  • Tree
  • List 1066
  • Changed 14
  • Source Changed 9
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45597106575
  • 10829928 on github
  • Prev Build on main (#45578145302)
  • Next Build on main (#45615735519)
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