-
Notifications
You must be signed in to change notification settings - Fork 164
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
fix(controller): do not normalize urls when searching for image creds #3110
Conversation
Signed-off-by: Kent Rancourt <[email protected]>
✅ Deploy Preview for docs-kargo-io ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3110 +/- ##
==========================================
- Coverage 51.14% 51.13% -0.01%
==========================================
Files 283 283
Lines 25469 25483 +14
==========================================
+ Hits 13026 13032 +6
- Misses 11750 11757 +7
- Partials 693 694 +1 ☔ View full report in Codecov by Sentry. |
…#3110) Signed-off-by: Kent Rancourt <[email protected]> (cherry picked from commit 193c579)
Successfully created backport PR for |
…akuity#3110) Signed-off-by: Kent Rancourt <[email protected]>
…akuity#3110) Signed-off-by: Kent Rancourt <[email protected]>
Fixes #2928
We formerly applied git repo URL and chart repo URL normalization to all repo URLs when searching for credentials because we believed it to be safe.
An edge case we'd not previously identified involved that fact that an image repo URL of the form
host:port/name
can be mistaken for an SCP-style Git URL and would thus be normalized ashost:port/name
😬 and would prevent a successful match.This PR causes us to selectively normalize based on the type of credential we're searching for.