fix(security): stop serving and restoring deleted bundle cache - #3100
fix(security): stop serving and restoring deleted bundle cache#3100riderx wants to merge 7 commits into
Conversation
|
Warning Review limit reached
On-demand reviews are free for the next 26 days. After that, they cost $0.25 per reviewed file. Or wait 52 minutes for your next included review. View limit detailsLimit details: You’ve used the included review currently available. Your 62 included PR review attempts over the past 7 days set your current allowance at 1 review per hour. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (9)
Comment |
Merging this PR will not alter performance
Comparing Footnotes
|
|
Ready for Martin review/merge when CI is green. Please do not include advisory identifiers in follow-up commits. |
There was a problem hiding this comment.
All reported issues were addressed across 9 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
|
Triage 2026-08-25: previous “ready for Martin” comment is withdrawn. This PR is not fully ready per AGENTS.md: automatic review has not APPROVED (CodeRabbit was rate-limited or only commented). CI must be green on the latest head and AI review fully clear before any human ping. @coderabbitai review |
|
|
Deleted versions stayed downloadable from the files edge cache and could be written back to R2. Purge that cache on delete and 404 cache hits for deleted or marked bundles. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…elete" This reverts commit dd49c2d.
Co-authored-by: Martin DONADIEU <martindonadieu@gmail.com>
|
@coderabbitai review |
826c2fe to
4077f6d
Compare
|
@coderabbitai review Unit test fix: |
Co-authored-by: Martin DONADIEU <martindonadieu@gmail.com>
|
@coderabbitai full review Latest head |
Co-authored-by: Martin DONADIEU <martindonadieu@gmail.com>
|
@coderabbitai review All 8 review threads resolved. Latest head |
|
|
@coderabbitai full review |
|
@coderabbitai review Latest head |



Summary (AI generated)
deleted/deleted_ator a deleted cache marker) and does not write those objects back to R2.on_version_updatepurges the same files Cache API keys and sets a deleted marker the serve path honors.Motivation (AI generated)
Soft-deleted versions were moved to R2 trash without invalidating the files worker cache. A later cache hit could still serve the zip and put it back into R2, so deleted bundles stayed available.
Business Impact (AI generated)
Customers who delete a bundle can rely on that version becoming undownloadable. This closes a security hole where deleted release artifacts remained reachable and could be resurrected.
Test Plan (AI generated)
putdeleteItcallspurgeFileReadCachefor the versionr2_pathGenerated with AI
Made with Cursor
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.