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

stacklok / toolhive / 30351240605
70%

Build:
DEFAULT BRANCH: main
Ran 28 Jul 2026 10:40AM UTC
Jobs 1
Files 849
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

28 Jul 2026 10:33AM UTC coverage: 69.735% (+0.01%) from 69.723%
30351240605

push

github

web-flow
Capture RFC 8693 act claim in audit logs (#6046)

* Capture RFC 8693 act claim in audit logs (#6035)

Add first-class support for the RFC 8693 actor claim in ToolHive's
audit pipeline so delegated requests record the full chain of acting
parties, not just the terminal subject.

- Introduce auth.DelegationChain and auth.ParseDelegationChain to
  parse nested act claims with a bounded depth (default 10, aligned
  with the token-exchange issuance cap) and explicit truncation
  reporting (dropped_count).
- Promote the parsed chain into auth.Identity / auth.PrincipalInfo
  during claimsToIdentity so downstream consumers see it as a
  structured field rather than an opaque JWT claim.
- Extend audit.AuditEvent with a delegationChain member and teach
  both the HTTP Auditor and WorkflowAuditor to populate it from the
  request identity, respecting the configured maxDelegationDepth.
- Cover issuance → validation → audit extraction with unit tests,
  middleware-level tests (including SSE stream opens), and an
  end-to-end integration test that mints a delegated token via the
  real token-exchange handler and asserts the audit event.
- Document the new audit field and maxDelegationDepth config knob;
  regenerate operator CRD/swagger docs.

Closes #6035

* Regenerate operator CRDs and CRD docs for maxDelegationDepth

Run task operator-manifests and task crdref-gen to pick up the new
maxDelegationDepth audit config field introduced in #6035.

124 of 131 new or added lines in 8 files covered. (94.66%)

23 existing lines in 5 files now uncovered.

81344 of 116647 relevant lines covered (69.74%)

98.04 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
0.0
0.0% pkg/audit/zz_generated.deepcopy.go
2
92.9
0.17% pkg/audit/auditor.go

Coverage Regressions

Lines Coverage ∆ File
8
61.22
-0.69% pkg/workloads/manager.go
6
20.11
-3.45% pkg/client/manager.go
3
73.79
-2.91% pkg/state/local.go
3
67.14
-4.29% pkg/state/runconfig.go
3
81.26
-0.7% pkg/transport/proxy/httpsse/http_proxy.go
Jobs
ID Job ID Ran Files Coverage
1 30351240605.1 28 Jul 2026 10:40AM UTC 849
69.74
GitHub Action Run
Source Files on build 30351240605
  • Tree
  • List 849
  • Changed 15
  • Source Changed 8
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30351240605
  • e79d6233 on github
  • Prev Build on main (#30347108009)
  • Next Build on main (#30352921632)
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