add and use new event types #233

Closed
opened 2025-07-08 08:43:42 -04:00 by AtHeartEngineer · 0 comments

Originally created by @stefan0xC on 1/27/2025

It seems like the web-vault has some additional event types, so I've updated our list accordingly. Most of them are added only for reference (and it seems like the web-vault does not even have support to display all of them correctly at the moment).

I've used the new ones for auth requests and to differentiate between a member leaving an organization
image
and getting the whole account deleted by an admin (possibly this should also be when it's deleted by yourself?).
image

Lastly I also changed it so that the membership info is also stored in the log_user_event for the found organizations, so the link to the member id won't show up as undefined in the report:
Screenshot 2025-01-27 at 23-43-07 Event logs Vaultwarden Web
(I'm not sure why this is not also linked for other User events as it seems useful to have a quick link to list the associated items for a given member...)

*Originally created by @stefan0xC on 1/27/2025* It seems like the web-vault has [some additional event types](https://github.com/bitwarden/clients/blob/web-v2025.1.1/libs/common/src/enums/event-type.enum.ts), so I've updated our list accordingly. Most of them are added only for reference (and it seems like the web-vault does not even have support to [display all of them correctly](https://github.com/bitwarden/clients/blob/web-v2025.1.1/apps/web/src/app/core/event.service.ts) at the moment). I've used the new ones for auth requests and to differentiate between a member leaving an organization ![image](https://github.com/user-attachments/assets/04da1345-b6b7-4ec0-8151-c32b900005bc) and getting the whole account deleted by an admin (<del>possibly this should also be when it's deleted by yourself?</del>). ![image](https://github.com/user-attachments/assets/c002ec2f-0776-4d1c-85f3-5e89d95c384f) Lastly I also changed it so that the membership info is also stored in the `log_user_event` for the found organizations, so the link to the member id won't show up as `undefined` in the report: ![Screenshot 2025-01-27 at 23-43-07 Event logs Vaultwarden Web](https://github.com/user-attachments/assets/814893b2-2e5d-4109-ac99-6013dce3fe22) (I'm not sure why this is not also linked for other User events as it seems useful to have a quick link to list the associated items for a given member...)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#233