[security] tool_security.py fails closed on auth errors, locking out admins #675
Labels
No labels
area:chat
area:core
area:llm
area:routes
area:tools
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
refactor
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sleepy/odysseus#675
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Security: tool_security.py fails closed on auth errors
File:
src/tool_security.pyThe
owner_is_admin_or_single_user()function (line 56-67):Issue
AuthManager()instantiation fails oris_admin()throws, the function returnsFalseexcept Exceptionis too broad — it catchesImportError,AttributeError, configuration errors, DB connection failuresSuggested fix
Fixed via PR #893 — fail-open for known users on auth errors, fail-closed for anonymous. Added error+warning logging.