server
server copied to clipboard
Add EF Core Database Seeder
This PR adds an Entity Framework Core database seeder to initialize the database with initial data.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 41.31%. Comparing base (
732ded5) to head (4cd5cac). Report is 50 commits behind head on main.
Additional details and impacted files
@@ Coverage Diff @@
## main #4195 +/- ##
==========================================
+ Coverage 40.60% 41.31% +0.71%
==========================================
Files 1232 1262 +30
Lines 59521 60061 +540
Branches 5471 5483 +12
==========================================
+ Hits 24170 24816 +646
+ Misses 34211 34102 -109
- Partials 1140 1143 +3
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Checkmarx One – Scan Summary & Details – 2b844284-67d5-4d1a-a0e7-440ea11cf06c
New Issues
| Severity | Issue | Source File / Package | Checkmarx Insight |
|---|---|---|---|
![]() |
Privacy_Violation | /src/Api/Auth/Controllers/WebAuthnController.cs: 178 | Attack Vector |
![]() |
Privacy_Violation | /src/Api/Auth/Controllers/AccountsController.cs: 411 | Attack Vector |
![]() |
Privacy_Violation | /src/Api/Auth/Controllers/TwoFactorController.cs: 444 | Attack Vector |
![]() |
Privacy_Violation | /src/Api/Auth/Controllers/AccountsController.cs: 548 | Attack Vector |
![]() |
Privacy_Violation | /src/Api/Auth/Controllers/AccountsController.cs: 828 | Attack Vector |
![]() |
Privacy_Violation | /src/Api/Auth/Controllers/AccountsController.cs: 846 | Attack Vector |
![]() |
Privacy_Violation | /src/Api/Vault/Controllers/CiphersController.cs: 961 | Attack Vector |
![]() |
Privacy_Violation | /src/Api/Controllers/DevicesController.cs: 129 | Attack Vector |
![]() |
Privacy_Violation | /src/Api/AdminConsole/Controllers/OrganizationsController.cs: 260 | Attack Vector |
![]() |
Privacy_Violation | /src/Api/Controllers/DevicesController.cs: 155 | Attack Vector |
![]() |
Privacy_Violation | /src/Api/AdminConsole/Controllers/OrganizationsController.cs: 376 | Attack Vector |
![]() |
Privacy_Violation | /src/Api/AdminConsole/Controllers/OrganizationsController.cs: 429 | Attack Vector |
![]() |
Log_Forging | /src/Billing/Controllers/StripeController.cs: 117 | Attack Vector |
![]() |
Log_Forging | /src/Api/Auth/Controllers/WebAuthnController.cs: 85 | Attack Vector |
![]() |
Log_Forging | /src/Api/Auth/Controllers/WebAuthnController.cs: 68 | Attack Vector |
![]() |
Log_Forging | /src/Api/Auth/Controllers/WebAuthnController.cs: 153 | Attack Vector |
![]() |
Log_Forging | /src/Billing/Controllers/StripeController.cs: 117 | Attack Vector |
![]() |
Log_Forging | /src/Billing/Controllers/StripeController.cs: 117 | Attack Vector |
![]() |
Log_Forging | /src/Billing/Controllers/StripeController.cs: 117 | Attack Vector |
![]() |
Log_Forging | /src/Billing/Controllers/StripeController.cs: 117 | Attack Vector |
![]() |
Log_Forging | /src/Billing/Controllers/StripeController.cs: 117 | Attack Vector |
![]() |
Log_Forging | /src/Billing/Controllers/StripeController.cs: 117 | Attack Vector |
![]() |
Log_Forging | /src/Billing/Controllers/StripeController.cs: 117 | Attack Vector |
![]() |
Log_Forging | /src/Billing/Controllers/StripeController.cs: 117 | Attack Vector |
![]() |
Log_Forging | /src/Billing/Controllers/StripeController.cs: 117 | Attack Vector |
![]() |
Log_Forging | /src/Billing/Controllers/StripeController.cs: 117 | Attack Vector |
![]() |
Log_Forging | /src/Api/Vault/Controllers/CiphersController.cs: 222 | Attack Vector |
![]() |
Log_Forging | /src/Api/Auth/Controllers/AccountsController.cs: 540 | Attack Vector |
![]() |
Log_Forging | /src/Api/Auth/Controllers/AccountsController.cs: 838 | Attack Vector |
![]() |
Log_Forging | /src/Api/Vault/Controllers/CiphersController.cs: 953 | Attack Vector |
![]() |
Log_Forging | /src/Api/Auth/Controllers/TwoFactorController.cs: 94 | Attack Vector |
![]() |
Log_Forging | /src/Api/Auth/Controllers/TwoFactorController.cs: 104 | Attack Vector |
![]() |
Log_Forging | /src/Api/Auth/Controllers/TwoFactorController.cs: 122 | Attack Vector |
![]() |
Log_Forging | /src/Api/Auth/Controllers/TwoFactorController.cs: 131 | Attack Vector |
![]() |
Log_Forging | /src/Api/Auth/Controllers/TwoFactorController.cs: 148 | Attack Vector |
![]() |
Log_Forging | /src/Api/Auth/Controllers/TwoFactorController.cs: 157 | Attack Vector |
![]() |
Log_Forging | /src/Api/Auth/Controllers/TwoFactorController.cs: 188 | Attack Vector |
![]() |
Log_Forging | /src/Api/Auth/Controllers/TwoFactorController.cs: 206 | Attack Vector |
![]() |
Log_Forging | /src/Api/Auth/Controllers/TwoFactorController.cs: 245 | Attack Vector |
![]() |
Log_Forging | /src/Api/Auth/Controllers/AccountsController.cs: 403 | Attack Vector |
![]() |
Log_Forging | /src/Api/Auth/Controllers/TwoFactorController.cs: 350 | Attack Vector |
![]() |
Log_Forging | /src/Api/Auth/Controllers/TwoFactorController.cs: 297 | Attack Vector |
![]() |
Log_Forging | /src/Api/Auth/Controllers/TwoFactorController.cs: 289 | Attack Vector |
![]() |
Log_Forging | /src/Api/Auth/Controllers/TwoFactorController.cs: 280 | Attack Vector |
![]() |
Log_Forging | /src/Api/Auth/Controllers/TwoFactorController.cs: 263 | Attack Vector |
![]() |
Log_Forging | /src/Api/Auth/Controllers/TwoFactorController.cs: 254 | Attack Vector |
![]() |
Log_Forging | /src/Api/Controllers/DevicesController.cs: 120 | Attack Vector |
![]() |
Log_Forging | /src/Api/Auth/Controllers/AccountsController.cs: 820 | Attack Vector |
![]() |
Log_Forging | /src/Api/Auth/Controllers/TwoFactorController.cs: 402 | Attack Vector |
![]() |
Log_Forging | /src/Api/Auth/Controllers/TwoFactorController.cs: 380 | Attack Vector |
![]() |
Log_Forging | /src/Api/Auth/Controllers/TwoFactorController.cs: 369 | Attack Vector |
![]() |
Log_Forging | /src/Api/AdminConsole/Controllers/OrganizationsController.cs: 240 | Attack Vector |
![]() |
Log_Forging | /src/Api/Controllers/DevicesController.cs: 146 | Attack Vector |
![]() |
Log_Forging | /src/Api/AdminConsole/Controllers/OrganizationsController.cs: 341 | Attack Vector |
![]() |
Log_Forging | /src/Api/AdminConsole/Controllers/OrganizationsController.cs: 404 | Attack Vector |
![]() |
Missing_CSP_Header | /src/Core/MailTemplates/Handlebars/Auth/RegistrationVerifyEmail.html.hbs: 17 | Attack Vector |
![]() |
Open_Redirect | /src/Admin/Controllers/ToolsController.cs: 194 | Attack Vector |
Fixed Issues
| Severity | Issue | Source File / Package |
|---|---|---|
![]() |
CSRF | /src/Api/AdminConsole/Public/Controllers/MembersController.cs: 83 |
![]() |
CSRF | /src/Api/Auth/Controllers/TwoFactorController.cs: 411 |
![]() |
CSRF | /src/Api/AdminConsole/Controllers/OrganizationsController.cs: 218 |
![]() |
CSRF | /src/Api/Auth/Controllers/AccountsController.cs: 645 |
![]() |
CSRF | /src/Api/Vault/Controllers/CiphersController.cs: 583 |
![]() |
CSRF | /src/Api/Vault/Controllers/CiphersController.cs: 583 |
![]() |
CSRF | /src/Api/AdminConsole/Controllers/OrganizationUsersController.cs: 273 |
![]() |
CSRF | /src/Api/AdminConsole/Controllers/OrganizationUsersController.cs: 313 |
![]() |
CSRF | /src/Api/AdminConsole/Controllers/OrganizationUsersController.cs: 273 |
![]() |
CSRF | /src/Api/AdminConsole/Controllers/OrganizationUsersController.cs: 313 |
![]() |
CSRF | /src/Api/AdminConsole/Controllers/OrganizationUsersController.cs: 328 |
![]() |
CSRF | /bitwarden_license/src/Sso/Controllers/AccountController.cs: 100 |
![]() |
CSRF | /src/Api/Auth/Controllers/AccountsController.cs: 453 |
![]() |
CSRF | /src/Identity/Controllers/AccountsController.cs: 72 |
![]() |
Log_Forging | /src/Billing/Controllers/StripeController.cs: 117 |
![]() |
Log_Forging | /src/Billing/Controllers/StripeController.cs: 117 |
![]() |
Log_Forging | /src/Billing/Controllers/StripeController.cs: 117 |
![]() |
Log_Forging | /src/Billing/Controllers/StripeController.cs: 117 |
![]() |
Log_Forging | /src/Billing/Controllers/StripeController.cs: 117 |
![]() |
Log_Forging | /src/Api/Vault/Controllers/CiphersController.cs: 583 |

