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

stacklok / toolhive / 44263535175
75%

Build:
DEFAULT BRANCH: main
Ran 18 Nov 2026 08:12AM UTC
Jobs 1
Files 1034
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

18 Nov 2026 08:01AM UTC coverage: 73.499% (+0.03%) from 73.467%
44263535175

push

github

web-flow
Add client_credentials grant for SPIFFE workloads (#7173)

* Add the SPIFFE client_credentials handler

SPIFFE-authenticated workloads can only exchange tokens today. A
workload with no user to act for needs a plain client_credentials
grant bound to its verified SPIFFE identity.

Add a handler that wraps fosite's stock client-credentials handler and
accepts a request only from an AuthenticatedSPIFFEClient whose
association lists the grant. It reuses server.GrantSingleResource, so
it requires exactly one resource, matched exactly against the
association's resources and the server's allowed audiences, and
rejects the audience parameter. Scopes must be within the association.
The token subject is the SPIFFE ID, it carries the scp claim without a
scope string, it is marked as having no upstream session, and no
refresh token is issued. Every policy rejection returns a hint and
writes a debug log line.

buildProvider registers the handler only when the new
SupportsSPIFFEClientCredentialsGrant flag is set, which the server
derives from the SPIFFE trust config. Validation still admits only the
token-exchange grant on an association, so no configuration can set the
flag yet and nothing changes at runtime. Comments that described
SPIFFE clients as token-exchange only are updated where they touch
these code paths.

Part of #6204.

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

* Count JWT-SVID associations as confidential

A JWT-SVID is a bearer credential: anyone who captures one can replay
it until it expires. A SPIFFE association that allows the JWT-SVID
method was not treated like a delegate client in the cleartext
transport check, so it could run over plain HTTP.

Treat an association with the spiffe_jwt method as a confidential
client everywhere the check runs: RunConfig and Config validation, the
authorization server's HasStaticConfidentialClients flag, and the
operator's EmbeddedAuthServerConfig. The two CRD rules for
insecureAllowHTTP and for http issuers... (continued)

223 of 227 new or added lines in 15 files covered. (98.24%)

9 existing lines in 4 files now uncovered.

97025 of 132009 relevant lines covered (73.5%)

884.57 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
94.44
pkg/authserver/server/clientcredentials/handler.go

Coverage Regressions

Lines Coverage ∆ File
3
83.93
-0.16% pkg/authserver/storage/redis.go
3
59.15
-0.25% pkg/container/docker/client.go
2
55.58
-0.52% pkg/transport/stdio.go
1
96.77
-3.23% pkg/foreach/foreach.go
Jobs
ID Job ID Ran Files Coverage
1 44263535175.1 18 Nov 2026 08:12AM UTC 1034
73.5
GitHub Action Run
Source Files on build 44263535175
  • Tree
  • List 1034
  • Changed 26
  • Source Changed 20
  • Coverage Changed 24
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #44263535175
  • e44a214e on github
  • Prev Build on main (#44215746723)
  • Next Build on main (#44283063223)
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