Security Insights Admin: Unified Security Event Export & Incident Aggregation #173
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces an admin-focused Security Insights feature that provides a unified export of security-related events for audit, compliance, and incident analysis purposes.
A new backend-only API endpoint is added to aggregate authentication, brute-force, and session lifecycle events into a normalised security event model, with optional incident correlation and multi-format export.
Key Features
GET /api/security/events/exportendpoint for exporting security events.auth_logs,brute_force_logs, anduser_sessioninto a unified timeline.SecurityEventmodel andSecurityEventTypedefinitions to standardise security telemetry.Design Notes
Testing / Validation
Scope
This change is self-contained and safe to merge. No database schema changes or breaking API changes are introduced.
Primary contributor: King Hei Law