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

stacklok / toolhive / 45684522131
75%

Build:
DEFAULT BRANCH: main
Ran 25 Nov 2026 07:30PM UTC
Jobs 1
Files 1071
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

25 Nov 2026 07:22PM UTC coverage: 74.24% (-0.03%) from 74.271%
45684522131

push

github

web-flow
Let Cedar read user claims the upstream asserts only in its ID token (#6054)

* Let Cedar see group claims from the upstream id_token

Cedar read group and role claims from the pinned upstream's access token
only, so a provider that asserts group membership in its id_token — common
where groups are a profile-scope claim — produced an empty group set and
every `principal in THVGroup::"..."` policy denied for every user.

because widening the supplement newly grants requests that deny. This is
that change. Provenance is what makes it safe: since #6036 the supplement
source is the same provider's id_token, so a group read from it is asserted
by the same IdP that issued the access token.

The supplement is inverted from an allow-list of {name, email} to a
deny-list of claims that describe the id_token rather than the user
(registered/OIDC token claims) plus `sub`, which is the Cedar principal.
An allow-list cannot work here: the group claim's name is chosen by the
deployment via GroupClaimName/RoleClaimName or by the IdP as a URI-style
name, so any fixed list denies silently for names ToolHive does not choose
— the defect shape of #5916 and #6049 both. Inverting also settles `hd`
and custom namespaced claims in the same pass.

Precedence is unchanged and stays fill-only rather than union: an access
token asserting a partial group list keeps exactly that list, because
per-audience claim filtering means that list is the provider's answer for
this resource server.

The ToolHive-issued token is still never a claim source, so a group on it
still grants nothing.

Fixes #6049

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y5WXPQr5Da9Cox2nZWhg6n

* Keep scope out of the id_token supplement

Group and role claims are facts about the user, so either of the pinned
provider's tokens may report them. `scope`/`scp` are not: they assert the
authority a particular token carries, and the only authority ... (continued)

34 of 34 new or added lines in 1 file covered. (100.0%)

59 existing lines in 5 files now uncovered.

100816 of 135797 relevant lines covered (74.24%)

870.8 hits per line

Coverage Regressions

Lines Coverage ∆ File
47
59.21
-4.68% pkg/workloads/manager.go
6
19.87
-3.97% pkg/client/manager.go
3
0.0
-100.0% pkg/workloads/sysproc_unix.go
2
73.19
-0.27% pkg/transport/proxy/streamable/streamable_proxy.go
1
94.24
0.0% pkg/authserver/storage/memory.go
Jobs
ID Job ID Ran Files Coverage
1 45684522131.1 25 Nov 2026 07:30PM UTC 1071
74.24
GitHub Action Run
Source Files on build 45684522131
  • Tree
  • List 1071
  • Changed 11
  • Source Changed 2
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45684522131
  • a0e21c69 on github
  • Prev Build on main (#45662930464)
  • Next Build on main (#45694096583)
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