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

stacklok / toolhive / 43638696529
75%

Build:
DEFAULT BRANCH: main
Ran 14 Nov 2026 08:47PM UTC
Jobs 1
Files 1023
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

14 Nov 2026 08:40PM UTC coverage: 73.254% (+0.005%) from 73.249%
43638696529

push

github

web-flow
Let vMCP embedders add audit event subjects (#7135)

* Let vMCP embedders add audit event subjects

Audit subjects come from a fixed set of identity fields, so an
embedder that knows more about the caller (the OAuth client id, whose
claim differs by IdP, or whether the caller is a workload) cannot
record it.

Add audit.SubjectEnricher, set from Go through a WithSubjectEnricher
option on both auditor constructors and an AuditSubjectEnricher field
on the vMCP server and core configs. Its keys are added to subjects
on per-request MCP events and composite-tool workflow events. Empty
values are dropped and the built-in keys (user, user_id, client_name,
client_version) are reserved. With no enricher, events are unchanged.

Closes #7134

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Regenerate CRD API docs for new audit types

Fix Operator CI / Generate CRD Docs failure: crd-ref-docs scans
pkg/audit, and the new exported SubjectEnricher and Option types add
entries to docs/operator/crd-api.md that were not committed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Cover Handler enricher wiring and pin reserved keys

Addresses stacklok/toolhive#7135 review comments:
- MEDIUM pkg/vmcp/server/server.go:796 (4567388791): test enricher via Handler
- LOW pkg/audit/subject_enricher.go:56 (4567388808): pin reserved keys
- LOW docs/middleware.md:642 (4567388822): enricher runs when AuditConfig set
- LOW pkg/vmcp/core/core_audit_test.go:32 (4567388833): rename audit helper

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Narrow the reserved-keys test comment to its scope

Addresses stacklok/toolhive#7135 review comments:
- LOW pkg/audit/subject_enricher_test.go:221 (4567601328): doc comment
  and Len message overclaimed the guarantee; drop dead
  preferred_username claim

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Make SubjectEnricher take only the context

A planned toolhive-core audit emitter will expose the same h... (continued)

64 of 64 new or added lines in 8 files covered. (100.0%)

47 existing lines in 6 files now uncovered.

95770 of 130737 relevant lines covered (73.25%)

889.55 hits per line

Coverage Regressions

Lines Coverage ∆ File
19
92.46
0.03% pkg/authserver/server/handlers/handler.go
13
93.13
0.0% pkg/authserver/server/handlers/callback.go
6
19.87
-3.97% pkg/client/manager.go
6
59.0
-0.62% pkg/workloads/manager.go
2
73.19
-0.27% pkg/transport/proxy/streamable/streamable_proxy.go
1
94.66
-0.76% pkg/vmcp/composer/dag_executor.go
Jobs
ID Job ID Ran Files Coverage
1 43638696529.1 14 Nov 2026 08:47PM UTC 1023
73.25
GitHub Action Run
Source Files on build 43638696529
  • Tree
  • List 1023
  • Changed 15
  • Source Changed 10
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #43638696529
  • 87beabf0 on github
  • Prev Build on main (#43637262828)
  • Next Build on main (#43757355669)
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