Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upHandle error responses from backends #71412
Conversation
k8s-ci-robot
requested a review
from
sttts
Nov 26, 2018
k8s-ci-robot
added
release-note
kind/bug
size/M
sig/api-machinery
cncf-cla: yes
needs-priority
labels
Nov 26, 2018
liggitt
added this to the v1.13 milestone
Nov 26, 2018
liggitt
added
priority/critical-urgent
and removed
needs-priority
labels
Nov 26, 2018
This comment has been minimized.
This comment has been minimized.
[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
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
k8s-ci-robot
added
the
approved
label
Nov 26, 2018
liggitt
changed the title
Handles error responses from backends
Handle error responses from backends
Nov 26, 2018
Nov 26, 2018
This was referenced
This comment has been minimized.
This comment has been minimized.
/retest |
This comment has been minimized.
This comment has been minimized.
/lgtm |
k8s-ci-robot
assigned
sttts
Nov 26, 2018
k8s-ci-robot
added
the
lgtm
label
Nov 26, 2018
k8s-ci-robot
merged commit 2257c1e
into
kubernetes:master
Nov 26, 2018
18 checks passed
added a commit
that referenced
this pull request
Nov 26, 2018
added a commit
that referenced
this pull request
Nov 26, 2018
added a commit
that referenced
this pull request
Nov 26, 2018
liggitt
deleted the
liggitt:backend-error
branch
Nov 26, 2018
This comment has been minimized.
This comment has been minimized.
/cc @wenjiaswe |
k8s-ci-robot
requested a review
from
wenjiaswe
Nov 26, 2018
This comment has been minimized.
This comment has been minimized.
@liggitt Can I cherry-pick your change to our 1.9.x k8s to fix the issue? |
This comment has been minimized.
This comment has been minimized.
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) |
This comment has been minimized.
This comment has been minimized.
cizixs
commented
Dec 4, 2018
dims
referenced this pull request
Dec 5, 2018
Closed
Need a new release with fix for CVE-2018-1002105? #180
This comment has been minimized.
This comment has been minimized.
pdhung
commented
Dec 5, 2018
•
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. |
added a commit
to rcbops/kubernetes
that referenced
this pull request
Dec 5, 2018
added a commit
to rcbops/kubernetes
that referenced
this pull request
Dec 5, 2018
This comment has been minimized.
This comment has been minimized.
mgalgs
commented on b84e3dd
Dec 6, 2018
Backend upgraded connection: |
This comment has been minimized.
This comment has been minimized.
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. |
liggitt commentedNov 26, 2018
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