-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Bug: Limit Apiserver Proxy Redirects #95129
Comments
@Riaankl: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@liggitt Does this issue and PR address your concerns about the apiserver proxy server doing a blanket direct of any http call to the root proxy endpoints? |
commented on the associated PR, thanks |
/remove-sig testing |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
/remove-lifecycle stale |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
/remove-lifecycle stale |
/remove-lifecycle stale |
What happened:
As part of creating an e2e test for Pod ProxyOptions endpoints, it was found that the apiserver proxy server is processing a blank redirect for any method call for 21 endpoints across pods, services and nodes.
For a pod, redirecting for any method other than GET or HEAD is a bug, #94786 (comment)
What you expected to happen:
This is the current behaviour for the apiserver but with a minimal code change the redirect can apply to only the following endpoints;
GET /api/v1/namespaces/{namespace}/pods/{name}/proxy
HEAD /api/v1/namespaces/{namespace}/pods/{name}/proxy
GET /api/v1/namespaces/{namespace}/services/{name}/proxy
HEAD /api/v1/namespaces/{namespace}/services/{name}/proxy
GET /api/v1/nodes/{name}/proxy
HEAD /api/v1/nodes/{name}/proxy
How to reproduce it (as minimally and precisely as possible):
Create any standard pod and service in the default namespace
run
kubectl proxy --port=8888
in another terminalthe response from running the following commands produces a
HTTP/1.1 301 Moved Permanently
curl -I -X GET -s http://localhost:8888/api/v1/namespaces/default/pods/{name}/proxy
curl -I -X GET -s http://localhost:8888/api/v1/namespaces/default/services/{name}/proxy
curl -I -X GET -s http://localhost:8888/api/v1/nodes/{name}/proxy
GET
can be replaced with other http verbsDELETE
,HEAD
,OPTIONS
,PATCH
,POST
andPUT
which also produce 301 responses.Anything else we need to know?:
/sig networking
/sig testing
/sig architecture
The text was updated successfully, but these errors were encountered: