-
Notifications
You must be signed in to change notification settings - Fork 42k
Handle error responses from backends #71412
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
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/retest |
|
/lgtm |
Cherry pick of #71412: Handle error responses from backends
Cherry pick of #71412: Handle error responses from backends
Cherry pick of #71412: Handle error responses from backends
|
/cc @wenjiaswe |
|
@liggitt Can I cherry-pick your change to our 1.9.x k8s to fix the issue? |
|
The 1.10 commit (#71415) would be a better one to pick to 1.9, just to avoid file drift issues (the change itself is fundamentally the same) |
As far as I understand, in the buggy version, the connection upgrade error was not handled correctly when it happens, and the backend connection is left open, which leaves subsequent request to pass through to kubelet unchecked/unauthorized. Since API server authenticates to kubelet as cluster-admin, it allows attacker to run any API on kubelet. |
Cherry pick of kubernetes#71412: Handle error responses from backends
Cherry pick of kubernetes#71412: Handle error responses from backends
|
We noticed that this change only applies to the following releases. Our old environment is using k8s 1.8.4. Does the k8s 1.8.4 source rebuild solve #71411 vulnerability by only reflecting this commit? When checked with the test utility below, it appears to be resolved. |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Handles error responses from backends
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes #71411
Does this PR introduce a user-facing change?:
/sig api-machinery
/cc sttts