1
0
mirror of https://github.com/bitwarden/server.git synced 2025-03-01 04:01:11 +01:00
bitwarden-server/util
Nick Krantz 1267332b5b
[PM-14406] Security Task Notifications (#5344)
* initial commit of `CipherOrganizationPermission_GetManyByUserId`

* create queries to get all of the security tasks that are actionable by a user

- A task is "actionable" when the user has manage permissions for that cipher

* rename query

* return the user's email from the query as well

* Add email notification for at-risk passwords

- Added email layouts for security tasks

* add push notification for security tasks

* update entity framework to match stored procedure plus testing

* update date of migration and remove orderby

* add push service to security task controller

* rename `SyncSecurityTasksCreated` to `SyncNotification`

* remove duplicate return

* remove unused directive

* remove unneeded new notification type

* use `createNotificationCommand` to alert all platforms

* return the cipher id that is associated with the security task and store the security task id on the notification entry

* Add `TaskId` to the output model of `GetUserSecurityTasksByCipherIdsAsync`

* move notification logic to command

* use TaskId from `_getSecurityTasksNotificationDetailsQuery`

* add service

* only push last notification for each user

* formatting

* refactor `CreateNotificationCommand` parameter to `sendPush`

* flip boolean in test

* update interface to match usage

* do not push any of the security related notifications to the user

* add `PendingSecurityTasks` push type

* add push notification for pending security tasks
2025-02-27 08:34:42 -06:00
..
Attachments Fix Attachments base image (#3190) 2023-08-15 19:48:25 -04:00
EfShared [PM-2633] Warnings cleanup (#3010) 2023-06-16 10:02:05 -04:00
Migrator [PM-14406] Security Task Notifications (#5344) 2025-02-27 08:34:42 -06:00
MsSql Update mssql to CU12 to support linux kernel 6.7.x (#3904) 2024-03-15 13:02:31 -06:00
MsSqlMigratorUtility chore: run dotnet format (#5137) 2024-12-10 18:29:54 +01:00
MySqlMigrations PM-10600: Missing Notification Center MaxLength on Body column (#5402) 2025-02-13 14:14:55 +01:00
Nginx nginx preserve upstream header values, fix ip (#2847) 2023-04-13 10:58:03 -04:00
PostgresMigrations PM-10600: Missing Notification Center MaxLength on Body column (#5402) 2025-02-13 14:14:55 +01:00
Server [PM-5052] Upgrade to .NET 8 (#3461) 2024-02-05 13:03:42 -05:00
Setup Update docker reference link (#5096) 2024-12-06 19:34:50 +01:00
SqliteMigrations PM-10600: Missing Notification Center MaxLength on Body column (#5402) 2025-02-13 14:14:55 +01:00
SqlServerEFScaffold [deps] DbOps: Update EntityFrameworkCore to v8.0.8 (#4651) 2024-08-19 14:21:16 -04:00