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

stacklok / toolhive / 33383317159
70%

Build:
DEFAULT BRANCH: main
Ran 31 Aug 2026 10:46AM UTC
Jobs 1
Files 903
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

31 Aug 2026 10:38AM UTC coverage: 69.661% (-0.06%) from 69.716%
33383317159

push

github

web-flow
Intersect default scopes with scopes_supported when scope is omitted (#6283)

* fix: intersect default scopes with scopes_supported

When a registration omits scope, ValidateScopes required every entry of
DefaultScopes to be present in scopes_supported and rejected the client
otherwise, so any server whose scopes_supported lacks even one default
(e.g. profile) rejected every scope-less registration with a generic
invalid_client, on both the DCR and the CIMD registration paths.

Fall back to the intersection of DefaultScopes with scopes_supported
instead, and report the dropped defaults so both callers WARN-log them
with the client identity. An empty intersection is still rejected, with
an error description that names the full default set. CIMD rejection
paths now also WARN-log the client_id and the reason, which previously
left no server-side trace at any level.

Closes #6186

Signed-off-by: Aleksandr Filippov <71711753+alex-feel@users.noreply.github.com>

* fix: address review feedback on omitted-scope logging

Demote the per-registration dropped-defaults record to Debug and move
it after the baseline union: on the DCR path it rides the existing
'registered new DCR client' record keyed on client_id, on the CIMD
path it logs the final post-union scope set. The drop is a pure
function of startup configuration, so the operator-facing signal is
now a one-time startup log in Config.applyDefaults (Info when the
intersection narrows the default set, Warn when it is empty and
scope-omitting clients will be rejected), reusing ValidateScopes so
the startup message cannot drift from request-path behavior.

Name the residual gap in ValidateScopes: the omitted-scope fallback
draws from DefaultScopes only, so entries in scopes_supported outside
the default set remain unreachable on that path; the explicit opt-in
is baseline_client_scopes = scopes_supported.

Update the stale BaselineClientScopes doc comments that described the
pre-intersection fallback and regener... (continued)

71 of 75 new or added lines in 4 files covered. (94.67%)

69 existing lines in 7 files now uncovered.

76373 of 109635 relevant lines covered (69.66%)

91.69 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
94.74
-0.74% pkg/authserver/config.go

Coverage Regressions

Lines Coverage ∆ File
51
59.0
-5.31% pkg/workloads/manager.go
6
19.87
-3.97% pkg/client/manager.go
3
96.18
-0.57% pkg/authz/authorizers/cedar/core.go
3
61.43
-4.29% pkg/state/runconfig.go
3
0.0
-100.0% pkg/workloads/sysproc_unix.go
2
50.66
-0.53% pkg/transport/stdio.go
1
81.07
-0.12% pkg/vmcp/composer/workflow_engine.go
Jobs
ID Job ID Ran Files Coverage
1 33383317159.1 31 Aug 2026 10:46AM UTC 903
69.66
GitHub Action Run
Source Files on build 33383317159
  • Tree
  • List 903
  • Changed 12
  • Source Changed 5
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #33383317159
  • 7bbc1189 on github
  • Prev Build on main (#33376970942)
  • Next Build on main (#33385151207)
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