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

stacklok / toolhive / 45390205118
75%

Build:
DEFAULT BRANCH: main
Ran 24 Nov 2026 12:16PM UTC
Jobs 1
Files 1059
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

24 Nov 2026 12:05PM UTC coverage: 74.026% (+0.06%) from 73.967%
45390205118

push

github

web-flow
Resolve ID-JAG subjects and issue marked tokens behind the gate (#7262)

* Resolve the ID-JAG subject behind the gate

A resolve issuer's ID-JAG carries an upstream_subject that has to
become a local user before the marked token can be issued. Nothing
did that mapping yet, and a mutable subject claim on the sign-in
upstream would have let a user rename themselves into another user.

Build a subject resolver from the first (sign-in) upstream and pass
it to IDJAGIssuanceFactory, which refuses a resolve issuer without
one. The handler resolves upstream_subject after the gate and before
anything is consumed. The resolver alone decides which issuers and
claims resolve and reports any other with the new
subject.ErrNotConfigured, which the handler refuses as a foreign
upstream_subject; a missing, unknown or unavailable subject gets the
other documented errors. Keeping that decision in the resolver means
a second issuer added to it later is not refused by a copy in the
handler. Config validation now also refuses a resolve issuer whose
first upstream uses a mutable subject claim, and the Okta sub
warning is logged once at startup.

The actor check is split in two. The issuer check stays before the
gate; the actor policy now runs after resolution with the resolved
local user, so a policy backed by a directory sees a user ID of this
server rather than AS-1's subject. Both still refuse before the jti
is used up. The gate still refuses every resolve redemption over
HTTP, so none of this is reachable yet.

To keep buildProvider under the complexity limit, the factory wiring
moves into buildJWTBearerFactoriesForConfig. The parameter of the exported
ValidateRuntimeSPIFFEBundleSourceType is renamed from subject to
fieldPath, because the new subject package import in config.go
shadowed it; its type and behaviour do not change.

Refs #7246

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

* Issue the marked token for a resolved subject

A resolved ID-JAG redemption has to p... (continued)

160 of 176 new or added lines in 10 files covered. (90.91%)

8 existing lines in 3 files now uncovered.

99410 of 134291 relevant lines covered (74.03%)

873.02 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
84.72
-0.38% pkg/authserver/server_impl.go
4
92.45
-7.55% pkg/authserver/server/tokenexchange/id_jag_actor.go
4
94.85
-1.7% pkg/authserver/server/tokenexchange/id_jag_handler.go
2
97.06
pkg/authserver/server/tokenexchange/id_jag_resolve.go

Coverage Regressions

Lines Coverage ∆ File
4
63.89
4.27% pkg/workloads/manager.go
3
96.34
-3.66% pkg/auth/obo/cache/cache.go
1
88.15
0.0% pkg/transport/proxy/transparent/transparent_proxy.go
Jobs
ID Job ID Ran Files Coverage
1 45390205118.1 24 Nov 2026 12:16PM UTC 1059
74.03
GitHub Action Run
Source Files on build 45390205118
  • Tree
  • List 1059
  • Changed 17
  • Source Changed 9
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45390205118
  • 44f7d636 on github
  • Prev Build on main (#45385265890)
  • Next Build on main (#45432026957)
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