-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
chore: update azure/kubelogin to address CVE #20578
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Jason Hall <jason@chainguard.dev>
🔴 Preview Environment stopped on BunnyshellSee: Environment Details | Pipeline Logs Available commands (reply to this comment):
|
|
@imjasonh the unit test failure is a real one, which I can consistently reproduce. What worked for me was reverting some of the unrelated changes (we would still need to find the actual reason for the failure). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added some changes to go.mod
which makes the failing test pass (basically anything that's not directly related to kubelogin
is reverted to its prior state for now), you'll then need to run go mod tidy
afterwards.
Signed-off-by: Jason Hall <jason@chainguard.dev>
Signed-off-by: Jason Hall <jason@chainguard.dev>
Thanks @blakepettersson, I've updated the deps and ran |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #20578 +/- ##
=========================================
Coverage ? 55.12%
=========================================
Files ? 324
Lines ? 55197
Branches ? 0
=========================================
Hits ? 30426
Misses ? 22156
Partials ? 2615 ☔ View full report in Codecov by Sentry. |
Before this change (3625689):
After this change (11ce485):
|
@imjasonh I'm no Azure expert - how has this been verified that this still works? |
I haven't verified anything at all. I'm just basing this on the previous PR from the feature's author to get the dep updated. If you have any simple instructions to test this, or an end-to-end test that I could run, I'd be happy to give it a shot. |
@bcho is the previous PR's author, 11 months ago |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR attempts to update the project's dependency on
github.com/Azure/kubelogin
to the most recent version, which allows the project to update its dependency ongithub.com/Azure/azure-sdk-for-go/sdk/azidentity
to a version that addresses a medium-severity CVE: GHSA-m5vv-6r4h-3vj9I don't know whether this project is actually susceptible to this vulnerability, but it gets flagged for users of this project, and in general depending on very old releases of packages is not recommended -- this updates
kubelogin
from v0.0.20 (Aug 2022) to v0.1.4 (July this year)The API has changed in breaking ways in the intervening ~2 years, and I assume this is part of the reason this old dependency has stuck around.
This is in part an update to #16661 -- I'm not sure if that PR should just be updated or if that's in some permanently stuck state.
Checklist: