Repository navigation
Sign pull-through package links - #1484
Conversation
Require signed tokens for upstream pull-through downloads and bind them to the remote's listing and package filename. Pass upstream SHA-256 digests to the downloader when available and invalidate cached simple pages when the remote's listing changes. Extracted from pulp#1429 for backporting. Co-authored-by: Claude Opus 5.5 <[email protected]> Assisted By: OpenAI Codex
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 56 minutes. View limit details
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. |
| release_package.filename, | ||
| stripped_url, | ||
| sha256=release_package.digests.get("sha256"), | ||
| metadata_sha256=(release_package.metadata_digests or {}).get("sha256"), |
There was a problem hiding this comment.
Just FTR - metadata files were introduced in 3.23.0, so any older branch will need adjustments.
Backport to 3.38: 💚 backport PR created✅ Backport PR branch: Backported as #1485 🤖 @patchback |
Backport to 3.36: 💚 backport PR created✅ Backport PR branch: Backported as #1486 🤖 @patchback |
Backport to 3.27: 💚 backport PR created✅ Backport PR branch: Backported as #1487 🤖 @patchback |
Backport to 3.19: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 8807ad9 on top of patchback/backports/3.19/8807ad9d56ac01efe4aebf882eec9e7939fef783/pr-1484 Backporting merged PR #1484 into main
🤖 @patchback |
Backport to 3.13: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 8807ad9 on top of patchback/backports/3.13/8807ad9d56ac01efe4aebf882eec9e7939fef783/pr-1484 Backporting merged PR #1484 into main
🤖 @patchback |
Backport to 3.12: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 8807ad9 on top of patchback/backports/3.12/8807ad9d56ac01efe4aebf882eec9e7939fef783/pr-1484 Backporting merged PR #1484 into main
🤖 @patchback |
Backport to 3.11: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 8807ad9 on top of patchback/backports/3.11/8807ad9d56ac01efe4aebf882eec9e7939fef783/pr-1484 Backporting merged PR #1484 into main
🤖 @patchback |
Note
Posted by an agent on behalf of @gerrod3.
Sign pull-through package links on simple index pages. Each token binds the upstream URL to the package filename and the remote's listing settings. The content app rejects invalid tokens and passes upstream SHA-256 digests to the downloader when available.
Refresh cached simple index pages to replace old unsigned links after upgrading. This fix is split out of #1429 for backporting.
Checklist
Summary by CodeRabbit