Skip to content

Conversation

@j-chmielewski
Copy link
Contributor

No description provided.

@j-chmielewski j-chmielewski marked this pull request as ready for review June 2, 2025 06:17
pub struct DeviceModifiedMetadata {
pub device_names: Vec<String>,
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it makes sense to put those into a separate module

@j-chmielewski j-chmielewski merged commit e308f78 into activity-ui Jun 2, 2025
@j-chmielewski j-chmielewski deleted the activity-ui-continued branch June 2, 2025 10:25
j-chmielewski added a commit that referenced this pull request Jun 3, 2025
* activity mock UI

* add basic skeleton of the event model

* add basic handlder skeleton with pagination

* a bit of cleanup

* update query data

* sketch out general event service setup

* inifnite scroll audit log with next page detection

* implement a basic loop for the event logger

* implement base event logging flow

* add helper method for sending events

* remove unnecessary DB pool from mail handler

* refactor logger message and add helper to log events

* add router module documentation

* split router logic into smaller functions

* milify list count display

* reorder migrations

* add filtering by modules

* implement sorting

* add username to audit log event

* add sorting by IP

* linter fixes

* remove details column

* add EventType enum

* update query data

* change default sort order

* add search support

* add search support

* store username in audit log table

* update dependencies

* filter events for non-admin users

* Update defguard-ui

* upgrade web packages

* fix missing package

* fix username query filter

* remove FK constraint to avoid deletions

* add user id to audit log events

* add device-related logging

* expect UTC timestamp in API request query param

* refactor group filters modal to accept string vlaues

* fix params parsing for axum compatible arrays

* add time filtering to activity view

* display timestamp in activity list as local time

* fix timestamp formatting in activity list

* add search to activity list

* add more logger event types

* add placeholder logic

* Translate event type and module in activtivy list

* extract router and logger into separate crates

* setup event channels for grpc servers

* pass event tx to bidi services

* Continued work on activity stream (#1186)

* 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

* Linter fixes

* Allow dead code

* Mark unused variables

* Add event router and logger to cargo-deny license exceptions

* Fix integration tests - rx dropped before tests end

* Fix logout handler

---------

Co-authored-by: Filip Ślęzak <fslezak@teonite.com>
Co-authored-by: Maciej Wójcik <maciek@wjck.pl>
Co-authored-by: Filip Ślęzak <102536422+filipslezaklab@users.noreply.github.com>
Co-authored-by: Jacek Chmielewski <jchmielewski@teonite.com>
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.

2 participants