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

stacklok / toolhive / 22137623963
62%

Build:
DEFAULT BRANCH: main
Ran 18 Feb 2026 11:28AM UTC
Jobs 1
Files 0
Run time –
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

pending completion
22137623963

push

github

web-flow
Harden scope handling in DCR and callback handler (#3831)

The embedded auth server had three scope-handling gaps that weakened
least-privilege enforcement. These are not directly exploitable under
the current default configuration, but reduce defense-in-depth:

1. DCR registered every client with all ScopesSupported scopes
   unconditionally, ignoring what the client actually needs.

2. The callback handler copied all stored scopes from
   PendingAuthorization into GrantedScope without filtering
   against the client's registration.

3. No explicit ScopeStrategy was configured — fosite's default
   WildcardScopeStrategy works for current scope names but is
   less strict than necessary.

Changes:
- Set fosite ScopeStrategy to ExactScopeStrategy explicitly
- Add scope field to DCR requests; validate against
  ScopesSupported; default to DefaultScopes when omitted
- Filter callback scopes against client registration and log
  when scopes are dropped
- Deduplicate scope values
- Add integration test for scope elevation rejection
- Add prefix/substring scope validation tests
- Replace hardcoded scope slices with registration.DefaultScopes
- Fix stale ScopesSupported comments in config.go

Fixes #3745
Jobs
ID Job ID Ran Files Coverage
1 22137623963.1 18 Feb 2026 11:28AM UTC 1070
62.38
GitHub Action Run
Source Files on build 22137623963
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #22137623963
  • ac495e6e on github
  • Prev Build on main (#22137563574)
  • Next Build on main (#22138581092)
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