Skip to content

Conversation

@wojcik91
Copy link
Contributor

@wojcik91 wojcik91 commented Jun 2, 2025

This is the initial implementation of the audit log.

It includes:

  • new event router and event logger crates/components
  • audit log UI in the webapp
  • audit log API with pagination & filtering

* DRY ApiEvent struct

* Handle device add/modified/removed events

* User event variants, impl FromRequestParts for ApiRequestContext

* Use context from request parts for all User events

* Refactor handle_api_event method

* MFA enabled/disabled events

* Totp, email, mfa security key events

TODO: send events on security key ops

* Don't rename owner field

* NetworkDevice Added/Modified/Removed events

TODO: handle removed

* Add network device frontend types and translations

* NetworkDevice event handling

* Cargo fmt

* Use context extractor in add_user handler

* Metadata handling is going to change, skip filtering over it for now

* Handle network device edge-cases

* Cache SessionInfo in extractors for downstream use

* Move audit log metadata to separate module

* Remove unused import
@j-chmielewski j-chmielewski merged commit f43c05d into dev Jun 3, 2025
5 checks passed
@j-chmielewski j-chmielewski deleted the activity-ui branch June 3, 2025 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants