Repository navigation
fix(security): finish accepted bulk scans after request completion - #1247
Conversation
|
Deployment failed for project drydock-website with the following error: |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
Included review availability: Your plan provides up to 2 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The bulk scan lifecycle change preserves accepted scans after normal request completion while retaining cancellation for incomplete requests. The documented behavior is covered by regression tests. 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
biggest-littlest
left a comment
There was a problem hiding this comment.
Reviewed the complete-request guard and real HTTP regression coverage. This preserves incomplete-request cancellation and scan concurrency. CodeRabbit completed review on 1bd4723 with no actionable findings.
What changed
{}, and strengthen the incomplete-request cancellation test.Reproduction
POST /api/v1/containers/scan-allreturned202withscheduledCount: 6, but only four containers scanned. Normal request completion emittedclose, which aborted the remaining queue. Both request-body forms reproduced this on the maintenance line. After the fix, all six complete.Verification
Threat model: an authorized bulk scan continuing its accepted asynchronous work. Request validation, authentication, rate limits, scanner concurrency, image selection and scan-result policy are unchanged. This is not an authorization bypass or a change to vulnerability decisions.
Targets
dev/v1.6first. The same defect exists on 1.7 and 1.8; forward-ports follow review. No release tag, main advancement or production deployment is part of this PR.Changelog
scanAllso normal request completion does not abort accepted bulk scans.{}request bodies.Concerns