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

stacklok / toolhive / 33973344999
75%

Build:
DEFAULT BRANCH: main
Ran 05 Sep 2026 03:04PM UTC
Jobs 1
Files 912
Run time 2min
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

05 Sep 2026 02:57PM UTC coverage: 70.087% (+0.2%) from 69.929%
33973344999

push

github

web-flow
Normalize canonical inbound grants (#6473)

* Normalize canonical inbound grants

The SPIFFE client-auth epic needs a place to configure SPIFFE
association policy without inventing a parallel trust/grant path next
to the existing delegate-client and trusted-issuer configuration. As
more inbound grant families (RFC 8693 token exchange, RFC 7523
JWT-bearer, SPIFFE) accumulate, they need one canonical surface to
configure and reason about instead of three independent ones, without
breaking deployments that already rely on the legacy fields.

Add pkg/authserver/inbound_grants.go with NormalizeInboundGrants, which
reconciles a new canonical RunConfig.InboundGrants surface (per-family
token_exchange/jwt_bearer sub-configs whose issuer_policies reference a
trusted_issuers entry by name) against the legacy top-level
delegate_clients and the RFC 8693/7523 fields embedded directly on
trusted_issuers. Legacy and canonical configuration for the same grant
family are mutually exclusive and rejected at validation time; the two
families are otherwise independent, and omitting inbound_grants
entirely preserves released behavior. Thread the normalized result
through RunConfig.Validate, the embedded-auth-server runner, and
buildProvider/discovery, adding a DisableTokenExchange capability so
RFC 8693 registration and discovery advertisement can be turned off
together and can't drift out of sync. Add TrustedIssuer.Name so
canonical issuer_policies can reference an issuer without duplicating
its fields.

SPIFFE client authentication (InboundGrants.SPIFFEClientAuth, defined
in the previous commit) is deliberately kept a sibling of TokenExchange
and JWTBearer here, not nested under either: SPIFFE authenticates a
client, it does not by itself grant it anything, so making it subordinate
to RFC 8693 enablement would mean disabling token exchange silently drops
every SPIFFE association, and every SPIFFE-authenticated client would be
implicitly token-exchange-capable. It is vali... (continued)

713 of 861 new or added lines in 23 files covered. (82.81%)

8 existing lines in 4 files now uncovered.

78465 of 111954 relevant lines covered (70.09%)

93.24 hits per line

Uncovered Changes

Lines Coverage ∆ File
38
82.86
-0.35% pkg/authserver/storage/redis.go
37
53.92
-3.01% pkg/authserver/storage/mocks/mock_storage.go
16
86.72
0.24% pkg/authserver/runner/embeddedauthserver.go
15
81.48
0.31% pkg/authserver/server_impl.go
12
85.88
pkg/authserver/storage/spiffe_decorator.go
8
85.07
-1.11% pkg/auth/dcr/resolver.go
6
87.76
pkg/authserver/spiffe_association_registry.go
4
90.14
-5.1% pkg/auth/dcr/store.go
4
55.56
pkg/authserver/spiffe_preflight.go
4
94.82
-0.15% pkg/authserver/storage/memory.go
2
89.03
0.75% pkg/authserver/server/handlers/authorize.go
1
88.89
-0.3% pkg/authserver/server/registration/client.go
1
97.65
0.06% pkg/authserver/server/tokenexchange/handler.go

Coverage Regressions

Lines Coverage ∆ File
4
85.61
-2.88% pkg/transport/proxy/transparent/sse_response_processor.go
2
68.8
-0.85% pkg/ignore/processor.go
1
86.72
0.24% pkg/authserver/runner/embeddedauthserver.go
1
53.92
-3.01% pkg/authserver/storage/mocks/mock_storage.go
Jobs
ID Job ID Ran Files Coverage
1 33973344999.1 05 Sep 2026 03:04PM UTC 912
70.09
GitHub Action Run
Source Files on build 33973344999
  • Tree
  • List 912
  • Changed 28
  • Source Changed 21
  • Coverage Changed 27
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #33973344999
  • 6b40bf3d on github
  • Prev Build on main (#33907585027)
  • Next Build on main (#34055498166)
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