-
Notifications
You must be signed in to change notification settings - Fork 39.9k
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
APIServer crashes when a MutatingWebhook returns a faulty patch #64291
Comments
/sig api-machinery |
This maybe a bug in |
This bug had been fixed in PR:#49259 |
@wgliang Thanks for your comment but I don't think the linked PR fixed the issue, as it got merged almost a year ago and I am running Kube 1.10.1 which does contain that patch but still panics. Just from quickly looking at the code I the linked PR I believe there are two things wrong:
|
@alvaroaleman Once the PR of |
/kind bug |
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. bump(github.com/evanphx/json-patch): 94e38aa1586e8a6c8a75770bddf5ff84c48a106b update package github.com/evanphx/json-patch fixes #64291 /cc wgliang cblecker ```release-note fixes a panic applying json patches containing out of bounds operations ```
/kind bug
What happened:
Wrote a
MutatingWebhook
that returned a faulty json patch which specified an our of range index (e.G."op":"add","path":"/spec/containers/2","value":"some-container-spec"
when there is only one container). This resulted in the apiserver crashing.Stacktrace:
What you expected to happen: No crash
/sig-api-machinery
The text was updated successfully, but these errors were encountered: