fix: resolve push auth at repository scope - #1014
Conversation
|
Warning Review limit reached
Next review available in: 19 minutes Limit details: You’ve used all 2 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits within each organization. For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window. Please refer docs for additional details. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan provides up to 2 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughPush permission checks and image pushes now resolve authentication against the complete destination repository. Integration coverage verifies repository-specific credential precedence and sibling repository isolation. ChangesPush authentication
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This localized change updates repository-scoped push authentication and adds integration coverage; no actionable merge-blocking risk remains beyond normal checks and review. Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 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 |
6dca851 to
b69a5f4
Compare
|
this enabled integration testing of repository auth #1016 will integrate it here now |
c8ed76b to
18d981b
Compare
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
18d981b to
e0b27e9
Compare
e0b27e9 to
39b7aca
Compare
Fixes #1008
Related to #1002
Related upstream fix: google/go-containerregistry#2411
Description
Kaniko currently resolves push credentials against the registry host, while pull authentication is resolved against the full repository.
This causes exact repository credentials to be ignored during push and can select the wrong credential when multiple repositories on the same registry use different credentials.
This change:
go-containerregistryCheckPushPermissionbehavior.The issue was identified while working on #1002, but is independent of path-scoped authentication.
Submitter Checklist
Reviewer Notes
Release Notes
Summary by CodeRabbit