- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.5k
 
[PM-26925] Complete security tasks when deleting #6492
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
base: main
Are you sure you want to change the base?
Conversation
| 
           Claude finished @nick-livefront's task ββ View job PR Review: Complete security tasks when deletingSummary of ChangesThis PR implements functionality to automatically mark security tasks as completed when their associated ciphers are soft deleted. The implementation spans the repository layer (both Dapper and EF), service layer, database stored procedure, and includes comprehensive test coverage. Changed files: 
 Critical Issuesβ 1. SQL Injection Risk in Dapper ImplementationLocation:  The Dapper implementation uses  Code snippetawait connection.ExecuteAsync(
    $"[{Schema}].[SecurityTask_MarkCompleteByCipherIds]",
    new { CipherIds = cipherIds.ToGuidIdArrayTVP() },
    commandType: CommandType.StoredProcedure);Recommendation: Verify that  
 | 
    
          Codecov Reportβ Patch coverage is  Additional details and impacted files@@            Coverage Diff             @@
##             main    #6492      +/-   ##
==========================================
+ Coverage   51.98%   56.04%   +4.05%     
==========================================
  Files        1872     1876       +4     
  Lines       82537    82660     +123     
  Branches     7299     7319      +20     
==========================================
+ Hits        42908    46326    +3418     
+ Misses      37972    34598    -3374     
- Partials     1657     1736      +79     β View full report in Codecov by Sentry. π New features to boost your workflow:
  | 
    
| 
           
 Great job! No new security vulnerabilities introduced in this pull request | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good! Nice work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π§ͺ π Thanks!
| 
           @bitwarden/dept-dbops Could this one get a review when convenient?  | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Database work seems fine. @rkac-bw and @mkincaid-bw are the true DbOps team at this point so they can chime in if necessary.

ποΈ Tracking
PM-26925
π Objective
When a cipher is soft deleted and has associated security tasks, they should be marked as completed.
πΈ Screenshots
delete-at-risk-ciphers.mov