Skip to content
This repository was archived by the owner on Jun 19, 2026. It is now read-only.

Add login anomaly detection and alerts#1066

Open
genson1808 wants to merge 1 commit into
rohitdash08:mainfrom
genson1808:genson1808/login-anomaly-alerts-124
Open

Add login anomaly detection and alerts#1066
genson1808 wants to merge 1 commit into
rohitdash08:mainfrom
genson1808:genson1808/login-anomaly-alerts-124

Conversation

@genson1808

Copy link
Copy Markdown

Summary

  • add LoginEvent and LoginAlert persistence for auth login activity
  • record successful and failed login attempts with IP/user-agent metadata
  • detect new IP, new device, unusual-hour logins, and failed-login bursts
  • expose login history, alert listing, and alert acknowledgement endpoints
  • make backend tests self-contained with a fake Redis client for auth/cache usage

Validation

  • ../../.venv/bin/python -m pytest tests from packages/backend -> 25 passed
  • ../../.venv/bin/flake8 app tests from packages/backend -> passed

/claim #124

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant