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

stacklok / toolhive / 24163599188

08 Apr 2026 11:15PM UTC coverage: 64.942% (-0.02%) from 64.964%
24163599188

push

github

web-flow
Log when authorization policies filter list responses (#4690)

* Log when authorization policies filter list responses

When Cedar policies deny access to tools, prompts, or resources during
list filtering, items are silently removed from the response. This makes
it difficult to diagnose authorization issues since the MCP client shows
empty capabilities with no explanation.

Add DEBUG-level logs for each denied item and an INFO-level summary
after filtering completes so operators can see that items were filtered
and enable DEBUG to see which ones.

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

* Add rate-limited claim key logging and use DEBUG for authz diagnostics

Add a generic AtMost utility (pkg/syncutil) that executes a function at
most once per configurable interval, safe for concurrent use. Use it in
the Cedar authorizer to emit a rate-limited DEBUG log of resolved JWT
claim keys, helping operators see what claims are available for writing
Cedar policies without enabling verbose per-request logging.

Downgrade the authorization filtering summary logs from INFO to DEBUG to
follow the "silent success" convention — a policy correctly denying
access is working as intended, not something that warrants INFO output.

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

* Add AtMost to codespell ignore list

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

---------

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

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

38 existing lines in 5 files now uncovered.

55062 of 84787 relevant lines covered (64.94%)

63.44 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

79.38
/pkg/transport/proxy/httpsse/http_proxy.go


Source Not Available

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