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-14381] Add POST /tasks/bulk-create endpoint #5188

Open
wants to merge 20 commits into
base: vault/pm-14378/security-task-auth-handler
Choose a base branch
from

Conversation

gbubemismith
Copy link
Member

@gbubemismith gbubemismith commented Dec 23, 2024

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-14381

📔 Objective

Admin endpoint to bulk create new tasks on the Access Intelligence page. Should accept a list of CipherIdsand the TaskType.

📸 Screenshots

⏰ 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 Dec 23, 2024

Codecov Report

Attention: Patch coverage is 38.29787% with 58 lines in your changes missing coverage. Please review.

Project coverage is 43.22%. Comparing base (9cef90b) to head (72b121d).

Files with missing lines Patch % Lines
...apper/Vault/Repositories/SecurityTaskRepository.cs 0.00% 17 Missing ⚠️
src/Infrastructure.Dapper/DapperHelpers.cs 0.00% 16 Missing ⚠️
...ework/Vault/Repositories/SecurityTaskRepository.cs 0.00% 16 Missing ⚠️
...rc/Api/Vault/Controllers/SecurityTaskController.cs 0.00% 8 Missing ⚠️
...els/Request/BulkCreateSecurityTasksRequestModel.cs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@                              Coverage Diff                              @@
##           vault/pm-14378/security-task-auth-handler    #5188      +/-   ##
=============================================================================
- Coverage                                      43.23%   43.22%   -0.01%     
=============================================================================
  Files                                           1457     1460       +3     
  Lines                                          66507    66600      +93     
  Branches                                        6099     6111      +12     
=============================================================================
+ Hits                                           28753    28789      +36     
- Misses                                         36458    36515      +57     
  Partials                                        1296     1296              

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

Copy link
Contributor

github-actions bot commented Dec 24, 2024

Logo
Checkmarx One – Scan Summary & Details3f485063-2852-4047-8e26-29fa31f9bd8e

New Issues

Severity Issue Source File / Package Checkmarx Insight
MEDIUM CSRF /src/Api/AdminConsole/Controllers/PoliciesController.cs: 70 Attack Vector
MEDIUM CSRF /src/Api/Billing/Controllers/OrganizationsController.cs: 52 Attack Vector
MEDIUM CSRF /src/Billing/Controllers/RecoveryController.cs: 38 Attack Vector
MEDIUM CSRF /src/Billing/Controllers/StripeController.cs: 164 Attack Vector
MEDIUM CSRF /src/Api/AdminConsole/Controllers/PoliciesController.cs: 91 Attack Vector
MEDIUM CSRF /src/Api/Auth/Controllers/AccountsController.cs: 470 Attack Vector
MEDIUM CVE-2024-6531 Npm-bootstrap-5.3.3 Vulnerable Package

Fixed Issues

Severity Issue Source File / Package
MEDIUM CSRF /src/Billing/Controllers/PayPalController.cs: 66
LOW Missing_CSP_Header /src/Core/MailTemplates/Handlebars/AdminConsole/DomainClaimedByOrganization.html.hbs: 5

@gbubemismith gbubemismith marked this pull request as ready for review December 27, 2024 15:28
@gbubemismith gbubemismith requested review from a team as code owners December 27, 2024 15:28
@gbubemismith
Copy link
Member Author

This PR will be retargeted to main after #5039 merges.

@gbubemismith gbubemismith added the hold Hold this PR or item until later; DO NOT MERGE label Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hold Hold this PR or item until later; DO NOT MERGE
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant