Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PM-8107] Remove Duo SDK version 2 from server code #4837

Closed
wants to merge 28 commits into from

Conversation

ike-kottlowski
Copy link
Contributor

@ike-kottlowski ike-kottlowski commented Sep 30, 2024

🎟️ Tracking

PM-8107

📔 Objective

We want to remove object references to the old Duo SDK version 2. This work accomplishes that task.

📸 Screenshots

Setting Duo for a User

Logging in with User Duo two factor

Setting Duo for Organization

Logging in using Organization Duo two factor

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

Copy link

codecov bot commented Sep 30, 2024

Codecov Report

Attention: Patch coverage is 43.93064% with 97 lines in your changes missing coverage. Please review.

Project coverage is 42.05%. Comparing base (c66879e) to head (8ed411e).
Report is 16 commits behind head on main.

Files with missing lines Patch % Lines
src/Core/Auth/Identity/DuoTokenProvider.cs 10.63% 42 Missing ⚠️
.../Identity/OrganizationDuoUniversalTokenProvider.cs 23.07% 28 Missing and 2 partials ⚠️
...rc/Core/Auth/Identity/DuoUniversalTokenProvider.cs 56.41% 16 Missing and 1 partial ⚠️
src/Api/Auth/Controllers/TwoFactorController.cs 86.66% 2 Missing ⚠️
...ls/Response/TwoFactor/TwoFactorDuoResponseModel.cs 71.42% 1 Missing and 1 partial ⚠️
src/Core/Auth/Utilities/DuoUtilities.cs 86.66% 0 Missing and 2 partials ⚠️
...rc/Identity/IdentityServer/BaseRequestValidator.cs 33.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4837      +/-   ##
==========================================
+ Coverage   41.72%   42.05%   +0.32%     
==========================================
  Files        1320     1323       +3     
  Lines       62569    62406     -163     
  Branches     5770     5736      -34     
==========================================
+ Hits        26106    26242     +136     
+ Misses      35254    34964     -290     
+ Partials     1209     1200       -9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

github-actions bot commented Sep 30, 2024

Logo
Checkmarx One – Scan Summary & Detailsd569d1d5-6b27-4c33-91c6-ad303ea6f625

New Issues

Severity Issue Source File / Package Checkmarx Insight
MEDIUM CSRF /src/Api/Auth/Controllers/AccountsController.cs: 366 Attack Vector
MEDIUM CSRF /src/Api/AdminConsole/Controllers/GroupsController.cs: 238 Attack Vector
MEDIUM CSRF /src/Api/Controllers/CollectionsController.cs: 247 Attack Vector
MEDIUM Privacy_Violation /src/Api/Vault/Models/Request/CipherRequestModel.cs: 198 Attack Vector
MEDIUM SSL_Verification_Bypass /src/Api/Auth/Models/Request/OrganizationSsoRequestModel.cs: 146 Attack Vector
MEDIUM SSL_Verification_Bypass /bitwarden_license/src/Sso/Utilities/DynamicAuthenticationSchemeProvider.cs: 405 Attack Vector
MEDIUM SSL_Verification_Bypass /src/Core/Utilities/CoreHelpers.cs: 105 Attack Vector
MEDIUM SSL_Verification_Bypass /src/Core/Utilities/CoreHelpers.cs: 115 Attack Vector
MEDIUM SSL_Verification_Bypass /src/Core/Utilities/CoreHelpers.cs: 140 Attack Vector
MEDIUM SSL_Verification_Bypass /src/Core/Utilities/CoreHelpers.cs: 93 Attack Vector
LOW Log_Forging /src/Notifications/Controllers/SendController.cs: 27 Attack Vector
LOW Log_Forging /src/Api/Vault/Controllers/CiphersController.cs: 574 Attack Vector
LOW Log_Forging /src/Api/Vault/Controllers/CiphersController.cs: 553 Attack Vector
LOW Log_Forging /src/Api/Vault/Controllers/CiphersController.cs: 603 Attack Vector
LOW Log_Forging /src/Api/Vault/Controllers/CiphersController.cs: 530 Attack Vector
LOW Log_Forging /bitwarden_license/src/Scim/Controllers/v2/GroupsController.cs: 98 Attack Vector
LOW Open_Redirect /src/Admin/Controllers/ToolsController.cs: 490 Attack Vector
LOW Open_Redirect /bitwarden_license/src/Sso/Controllers/AccountController.cs: 167 Attack Vector

Fixed Issues

Severity Issue Source File / Package
MEDIUM CSRF /src/Billing/Controllers/RecoveryController.cs: 38
MEDIUM CSRF /src/Api/Billing/Controllers/OrganizationsController.cs: 105
MEDIUM CSRF /src/Api/Billing/Controllers/OrganizationsController.cs: 49
MEDIUM CSRF /src/Api/AdminConsole/Controllers/PoliciesController.cs: 78
MEDIUM CSRF /src/Api/AdminConsole/Controllers/PoliciesController.cs: 61
MEDIUM CSRF /src/Billing/Controllers/StripeController.cs: 164
MEDIUM CSRF /src/Api/AdminConsole/Public/Controllers/MembersController.cs: 93
MEDIUM CSRF /src/Api/AdminConsole/Controllers/OrganizationUsersController.cs: 224
MEDIUM CSRF /src/Api/AdminConsole/Controllers/PoliciesController.cs: 78
MEDIUM CSRF /src/Api/AdminConsole/Controllers/PoliciesController.cs: 61
MEDIUM CSRF /src/Api/AdminConsole/Controllers/OrganizationUsersController.cs: 348
MEDIUM CSRF /src/Api/AdminConsole/Controllers/OrganizationUsersController.cs: 331
MEDIUM CSRF /src/Api/AdminConsole/Controllers/OrganizationUsersController.cs: 250
MEDIUM CSRF /src/Api/AdminConsole/Public/Controllers/PoliciesController.cs: 46
MEDIUM CSRF /src/Api/AdminConsole/Public/Controllers/PoliciesController.cs: 66
MEDIUM CSRF /src/Api/SecretsManager/Controllers/SecretsController.cs: 79
MEDIUM CSRF /src/Api/SecretsManager/Controllers/SecretsController.cs: 128
MEDIUM CSRF /src/Api/SecretsManager/Controllers/SecretsTrashController.cs: 32
MEDIUM Privacy_Violation /src/Api/Auth/Models/Request/Accounts/SetPasswordRequestModel.cs: 28
LOW Heap_Inspection /src/Core/Vault/Services/Implementations/LocalAttachmentStorageService.cs: 34
LOW Heap_Inspection /src/Api/Vault/Controllers/CiphersController.cs: 1125
LOW Log_Forging /src/Billing/Controllers/RecoveryController.cs: 38
LOW Log_Forging /src/Billing/Controllers/RecoveryController.cs: 38
LOW Log_Forging /src/Billing/Controllers/RecoveryController.cs: 38
LOW Log_Forging /src/Billing/Controllers/RecoveryController.cs: 38
LOW Log_Forging /src/Api/AdminConsole/Controllers/ProvidersController.cs: 72
LOW Log_Forging /src/Api/AdminConsole/Controllers/ProvidersController.cs: 72
LOW Log_Forging /src/Billing/Controllers/RecoveryController.cs: 38
LOW Log_Forging /src/Billing/Controllers/StripeController.cs: 164
LOW Log_Forging /src/Billing/Controllers/RecoveryController.cs: 38
LOW Log_Forging /src/Billing/Controllers/StripeController.cs: 164
LOW Log_Forging /src/Billing/Controllers/RecoveryController.cs: 38
LOW Log_Forging /src/Billing/Controllers/RecoveryController.cs: 38
LOW Log_Forging /src/Billing/Controllers/RecoveryController.cs: 38
LOW Log_Forging /src/Billing/Controllers/RecoveryController.cs: 38
LOW Log_Forging /src/Billing/Controllers/RecoveryController.cs: 38
LOW Log_Forging /src/Identity/Billing/Controller/AccountsController.cs: 23
LOW Log_Forging /src/Billing/Controllers/RecoveryController.cs: 38
LOW Log_Forging /src/Billing/Controllers/RecoveryController.cs: 38
LOW Log_Forging /src/Billing/Controllers/RecoveryController.cs: 38
LOW Log_Forging /src/Billing/Controllers/RecoveryController.cs: 38
LOW Log_Forging /src/Billing/Controllers/RecoveryController.cs: 38
LOW Log_Forging /src/Billing/Controllers/StripeController.cs: 164
LOW Log_Forging /src/Billing/Controllers/RecoveryController.cs: 38
LOW Log_Forging /src/Billing/Controllers/StripeController.cs: 164
LOW Log_Forging /src/Billing/Controllers/RecoveryController.cs: 38
LOW Log_Forging /src/Billing/Controllers/RecoveryController.cs: 38
LOW Log_Forging /src/Billing/Controllers/RecoveryController.cs: 38
LOW Log_Forging /src/Billing/Controllers/RecoveryController.cs: 38
LOW Log_Forging /src/Billing/Controllers/RecoveryController.cs: 38
LOW Log_Forging /src/Billing/Controllers/RecoveryController.cs: 38
LOW Log_Forging /src/Api/Billing/Controllers/ProviderBillingController.cs: 52
LOW Log_Forging /src/Api/Auth/Controllers/AccountsController.cs: 898
LOW Log_Forging /src/Api/Auth/Controllers/AccountsController.cs: 366
LOW Log_Forging /src/Api/Auth/Controllers/AccountsController.cs: 246

@ike-kottlowski ike-kottlowski deleted the auth/pm-8107/remove-v2-duo branch October 16, 2024 00:08
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.

1 participant