[security] Fix tool_security fail-closed on auth errors #893

Closed
sleepy wants to merge 0 commits from fix/tool-security-fail-safe-675 into dev
Owner
No description provided.
When tool_security.py encountered auth errors (DB unavailable, corrupt
auth store), owner_is_admin_or_single_user() returned False for all
users including admins. This caused blocked_tools_for_owner() to
return the full blocked set, locking out admins during auth degradation.

Fix: fail-open for identified users (any owner with a username) and
fail-closed only when identity is unknown (no owner). Add error-level
logging for auth failures so they're visible in monitoring.
sleepy closed this pull request 2026-06-04 02:20:03 +02:00

Pull request closed

Sign in to join this conversation.
No description provided.