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

stacklok / toolhive / 23446245797
64%

Build:
DEFAULT BRANCH: main
Ran 23 Mar 2026 08:34PM UTC
Jobs 1
Files 575
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

23 Mar 2026 03:46PM UTC coverage: 64.517% (+0.03%) from 64.485%
23446245797

push

github

web-flow
Replace webhook.Principal with auth.Identity (#4316)

* Replace webhook.Principal with auth.Identity

The webhook package defined its own Principal struct, but auth.Identity
already represents the same concept with a superset of fields. Maintaining
two parallel identity types creates sync burden and will require conversion
logic in the middleware layer. Since the webhook package has no external
consumers yet (v0.1.0), consolidate now before the API solidifies.

Closes #4315

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Introduce auth.PrincipalInfo and embed in Identity

Address review feedback on the webhook wire format: auth.Identity
carries Token, TokenType, and Metadata fields that have no business
in external webhook payloads — even redacted.

Extract the credential-free subset (Subject, Name, Email, Groups,
Claims) into auth.PrincipalInfo and embed it in Identity. This gives
structural safety: webhook.Request.Principal is now *auth.PrincipalInfo,
so tokens can never enter the webhook payload. The JSON wire format
uses "sub" with omitempty, matching the original webhook.Principal
contract from #3840.

Field access on Identity (e.g., identity.Subject) continues to work
transparently via Go embedding — only struct literals needed updating.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

22 of 22 new or added lines in 4 files covered. (100.0%)

27 existing lines in 3 files now uncovered.

50652 of 78510 relevant lines covered (64.52%)

90.5 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
79.79
-0.52% pkg/transport/proxy/httpsse/http_proxy.go
9
75.56
-18.89% pkg/webhook/types.go
16
71.43
-28.57% pkg/auth/identity.go
Jobs
ID Job ID Ran Files Coverage
1 23446245797.1 23 Mar 2026 08:34PM UTC 575
64.52
GitHub Action Run
Source Files on build 23446245797
  • Tree
  • List 575
  • Changed 11
  • Source Changed 5
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23446245797
  • b57cd151 on github
  • Prev Build on main (#23443362668)
  • Next Build on main (#23460037829)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc