Revoke stale sessions after password change #649
No reviewers
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sleepy/odysseus!649
Loading…
Reference in a new issue
No description provided.
Delete branch "alteixeira20/harden-password-session-revocation"
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?
Summary
Revokes other active browser sessions after a successful password change.
Changes
AuthManager.revoke_user_sessions(username, except_token=None).odysseus_sessionbrowser session.Motivation
If a user changes their password after suspecting stale or unwanted sessions, other browser sessions should not remain valid until expiry. This keeps password-change behavior safer while avoiding the UX surprise of logging out the current tab.
Validation
python3 -m py_compile core/auth.py routes/auth_routes.py tests/test_auth_session_revocation.pypython3 -m pytest tests/test_auth_session_revocation.pygit diff --checkNotes
Focused auth/session hardening only. API tokens are intentionally unchanged.
Merged via squash. Session revocation on password change with audit logging. 7 tests pass covering preserve-current, revoke-all, and zero-session paths.