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

stacklok / toolhive / 44548899538
75%

Build:
DEFAULT BRANCH: main
Ran 19 Nov 2026 03:03PM UTC
Jobs 1
Files 1038
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

19 Nov 2026 02:54PM UTC coverage: 73.611% (-0.04%) from 73.652%
44548899538

push

github

web-flow
Add SPIRE e2e harness and SPIFFE client credentials suites (#7194)

* Add SPIRE e2e harness and SPIFFE test suites

Deploy a real SPIRE Server/Agent to the e2e kind cluster and a
standalone spiffe-client test binary that fetches an X.509-SVID or
JWT-SVID over the Workload API and exchanges it at the auth server's
token endpoint. The SPIRE images are pinned in test/e2e/images and
preloaded by the e2e workflow; a Taskfile step builds and loads the
client image. Before it asks for a token, the binary reads the RFC 8414
metadata and fails unless client_credentials and the matching
spiffe_x509 or spiffe_jwt method are advertised.

Add two e2e suites that exercise SPIFFE client_credentials. The
MCPServer suite checks that the Service exposes the TLS listener port,
probes and the MCP endpoint stay on plain HTTP, a renewed listener
certificate is served without a pod restart, X.509-SVID and JWT-SVID
client credentials both yield equivalent tokens, and SPIRE authority
rotation (X.509 serial and JWT kid) is picked up without restarts. It
also proves the association is enforced: an attested workload with no
association and an unknown client_id get invalid_client, and a
resource outside the association gets invalid_target.

The proxy accepts the issued tokens and refuses a tampered one only
with upstream token injection disabled. With the upstream swap
enabled, the proxy answers 401 to these tokens because they carry no
upstream session; that behaviour is deliberately not asserted here.

The VirtualMCPServer suite covers token issuance, an X.509-issued token
reaching a backend tool through vMCP, and a backend that needs a static
credential: vMCP's header injection supplies it, and the backend never
sees the workload's token.

Each SPIRE instance publishes its Workload API socket in its own host
directory, so one suite's agent cannot remove another's socket. The
suites still run serially until a parallel run is verified on kind.
SPIRE resources are registered for ... (continued)

97577 of 132558 relevant lines covered (73.61%)

882.25 hits per line

Coverage Regressions

Lines Coverage ∆ File
56
59.0
-5.52% pkg/workloads/manager.go
6
19.87
-3.97% pkg/client/manager.go
3
0.0
-100.0% pkg/workloads/sysproc_unix.go
1
94.24
0.0% pkg/authserver/storage/memory.go
Jobs
ID Job ID Ran Files Coverage
1 44548899538.1 19 Nov 2026 03:03PM UTC 1038
73.61
GitHub Action Run
Source Files on build 44548899538
  • Tree
  • List 1038
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #44548899538
  • c41775cb on github
  • Prev Build on main (#44491297690)
  • Next Build on main (#44559477146)
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