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

stacklok / toolhive / 45008546059
75%

Build:
DEFAULT BRANCH: main
Ran 22 Nov 2026 09:47AM UTC
Jobs 1
Files 1040
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

22 Nov 2026 09:38AM UTC coverage: 73.652% (+0.002%) from 73.65%
45008546059

push

github

web-flow
Gate ID-JAG by issuer assertion types (#6678)

Let issuers restrict jwt-bearer assertion types

A trusted issuer configured for the JWT-bearer grant accepts both plain
RFC 7523 assertions and ID-JAG cross-app-access assertions. Trusting an
issuer for service-account assertions therefore also trusts it as an IdP
for a different resource owner, and trusting an IdP for ID-JAG also lets
its other signed JWTs be redeemed on the credential-free plain path.

Add AcceptedAssertionTypes (jwt_bearer|id_jag) to JWTBearerGrantConfig
and use it to filter each handler's issuer policies independently, so an
operator can restrict an issuer to one form. Nil and empty values keep
accepting both forms, so existing deployments, including ID-JAG users
since v0.50.0, behave as before; invalid runtime values are rejected.

When id_jag is listed explicitly, startup fails unless this authorization
server's issuer is accepted as an assertion audience: a configured
AcceptedAudiences must include it, and an empty list must not coincide
with the issuer also being an allowed audience, which drops the default.

Both forms share subject bindings, so the CRD and runtime documentation make clear that a
binding also authorizes credential-free plain JWT-bearer redemption
whenever jwt_bearer is accepted.

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

67 of 74 new or added lines in 8 files covered. (90.54%)

3 existing lines in 3 files now uncovered.

97763 of 132736 relevant lines covered (73.65%)

880.77 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
45.45
-0.08% cmd/thv-operator/api/v1beta1/zz_generated.deepcopy.go
2
91.63
-0.25% cmd/thv-operator/pkg/controllerutil/authserver.go

Coverage Regressions

Lines Coverage ∆ File
1
96.77
-3.23% pkg/foreach/foreach.go
1
88.02
-0.12% pkg/transport/proxy/transparent/transparent_proxy.go
1
94.66
-0.76% pkg/vmcp/composer/dag_executor.go
Jobs
ID Job ID Ran Files Coverage
1 45008546059.1 22 Nov 2026 09:47AM UTC 1040
73.65
GitHub Action Run
Source Files on build 45008546059
  • Tree
  • List 1040
  • Changed 13
  • Source Changed 9
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45008546059
  • b29650bc on github
  • Prev Build on main (#44941686872)
  • Next Build on main (#45057122508)
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