mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 02:09:56 +00:00
Stop supporting TRACE proxy requests
This commit is contained in:
parent
068000a8ba
commit
34a0bccd2e
@ -3393,36 +3393,6 @@
|
|||||||
"consumes": [
|
"consumes": [
|
||||||
"*/*"
|
"*/*"
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"method": "TRACE",
|
|
||||||
"summary": "proxy TRACE requests to Node",
|
|
||||||
"nickname": "proxyTRACENode",
|
|
||||||
"parameters": [
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"paramType": "path",
|
|
||||||
"name": "name",
|
|
||||||
"description": "name of the Node",
|
|
||||||
"required": true,
|
|
||||||
"allowMultiple": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"paramType": "path",
|
|
||||||
"name": "path:*",
|
|
||||||
"description": "path to the resource",
|
|
||||||
"required": true,
|
|
||||||
"allowMultiple": false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"produces": [
|
|
||||||
"*/*"
|
|
||||||
],
|
|
||||||
"consumes": [
|
|
||||||
"*/*"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -3539,28 +3509,6 @@
|
|||||||
"consumes": [
|
"consumes": [
|
||||||
"*/*"
|
"*/*"
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"method": "TRACE",
|
|
||||||
"summary": "proxy TRACE requests to Node",
|
|
||||||
"nickname": "proxyTRACENode",
|
|
||||||
"parameters": [
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"paramType": "path",
|
|
||||||
"name": "name",
|
|
||||||
"description": "name of the Node",
|
|
||||||
"required": true,
|
|
||||||
"allowMultiple": false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"produces": [
|
|
||||||
"*/*"
|
|
||||||
],
|
|
||||||
"consumes": [
|
|
||||||
"*/*"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -5531,44 +5479,6 @@
|
|||||||
"consumes": [
|
"consumes": [
|
||||||
"*/*"
|
"*/*"
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"method": "TRACE",
|
|
||||||
"summary": "proxy TRACE requests to Pod",
|
|
||||||
"nickname": "proxyTRACEPod",
|
|
||||||
"parameters": [
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"paramType": "path",
|
|
||||||
"name": "namespaces",
|
|
||||||
"description": "object name and auth scope, such as for teams and projects",
|
|
||||||
"required": true,
|
|
||||||
"allowMultiple": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"paramType": "path",
|
|
||||||
"name": "name",
|
|
||||||
"description": "name of the Pod",
|
|
||||||
"required": true,
|
|
||||||
"allowMultiple": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"paramType": "path",
|
|
||||||
"name": "path:*",
|
|
||||||
"description": "path to the resource",
|
|
||||||
"required": true,
|
|
||||||
"allowMultiple": false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"produces": [
|
|
||||||
"*/*"
|
|
||||||
],
|
|
||||||
"consumes": [
|
|
||||||
"*/*"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -5725,36 +5635,6 @@
|
|||||||
"consumes": [
|
"consumes": [
|
||||||
"*/*"
|
"*/*"
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"method": "TRACE",
|
|
||||||
"summary": "proxy TRACE requests to Pod",
|
|
||||||
"nickname": "proxyTRACEPod",
|
|
||||||
"parameters": [
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"paramType": "path",
|
|
||||||
"name": "namespaces",
|
|
||||||
"description": "object name and auth scope, such as for teams and projects",
|
|
||||||
"required": true,
|
|
||||||
"allowMultiple": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"paramType": "path",
|
|
||||||
"name": "name",
|
|
||||||
"description": "name of the Pod",
|
|
||||||
"required": true,
|
|
||||||
"allowMultiple": false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"produces": [
|
|
||||||
"*/*"
|
|
||||||
],
|
|
||||||
"consumes": [
|
|
||||||
"*/*"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -10416,44 +10296,6 @@
|
|||||||
"consumes": [
|
"consumes": [
|
||||||
"*/*"
|
"*/*"
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"method": "TRACE",
|
|
||||||
"summary": "proxy TRACE requests to Service",
|
|
||||||
"nickname": "proxyTRACEService",
|
|
||||||
"parameters": [
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"paramType": "path",
|
|
||||||
"name": "namespaces",
|
|
||||||
"description": "object name and auth scope, such as for teams and projects",
|
|
||||||
"required": true,
|
|
||||||
"allowMultiple": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"paramType": "path",
|
|
||||||
"name": "name",
|
|
||||||
"description": "name of the Service",
|
|
||||||
"required": true,
|
|
||||||
"allowMultiple": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"paramType": "path",
|
|
||||||
"name": "path:*",
|
|
||||||
"description": "path to the resource",
|
|
||||||
"required": true,
|
|
||||||
"allowMultiple": false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"produces": [
|
|
||||||
"*/*"
|
|
||||||
],
|
|
||||||
"consumes": [
|
|
||||||
"*/*"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -10610,36 +10452,6 @@
|
|||||||
"consumes": [
|
"consumes": [
|
||||||
"*/*"
|
"*/*"
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"method": "TRACE",
|
|
||||||
"summary": "proxy TRACE requests to Service",
|
|
||||||
"nickname": "proxyTRACEService",
|
|
||||||
"parameters": [
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"paramType": "path",
|
|
||||||
"name": "namespaces",
|
|
||||||
"description": "object name and auth scope, such as for teams and projects",
|
|
||||||
"required": true,
|
|
||||||
"allowMultiple": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"paramType": "path",
|
|
||||||
"name": "name",
|
|
||||||
"description": "name of the Service",
|
|
||||||
"required": true,
|
|
||||||
"allowMultiple": false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"produces": [
|
|
||||||
"*/*"
|
|
||||||
],
|
|
||||||
"consumes": [
|
|
||||||
"*/*"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -3393,36 +3393,6 @@
|
|||||||
"consumes": [
|
"consumes": [
|
||||||
"*/*"
|
"*/*"
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"method": "TRACE",
|
|
||||||
"summary": "proxy TRACE requests to Node",
|
|
||||||
"nickname": "proxyTRACENode",
|
|
||||||
"parameters": [
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"paramType": "path",
|
|
||||||
"name": "name",
|
|
||||||
"description": "name of the Node",
|
|
||||||
"required": true,
|
|
||||||
"allowMultiple": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"paramType": "path",
|
|
||||||
"name": "path:*",
|
|
||||||
"description": "path to the resource",
|
|
||||||
"required": true,
|
|
||||||
"allowMultiple": false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"produces": [
|
|
||||||
"*/*"
|
|
||||||
],
|
|
||||||
"consumes": [
|
|
||||||
"*/*"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -3539,28 +3509,6 @@
|
|||||||
"consumes": [
|
"consumes": [
|
||||||
"*/*"
|
"*/*"
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"method": "TRACE",
|
|
||||||
"summary": "proxy TRACE requests to Node",
|
|
||||||
"nickname": "proxyTRACENode",
|
|
||||||
"parameters": [
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"paramType": "path",
|
|
||||||
"name": "name",
|
|
||||||
"description": "name of the Node",
|
|
||||||
"required": true,
|
|
||||||
"allowMultiple": false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"produces": [
|
|
||||||
"*/*"
|
|
||||||
],
|
|
||||||
"consumes": [
|
|
||||||
"*/*"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -5531,44 +5479,6 @@
|
|||||||
"consumes": [
|
"consumes": [
|
||||||
"*/*"
|
"*/*"
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"method": "TRACE",
|
|
||||||
"summary": "proxy TRACE requests to Pod",
|
|
||||||
"nickname": "proxyTRACEPod",
|
|
||||||
"parameters": [
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"paramType": "path",
|
|
||||||
"name": "namespaces",
|
|
||||||
"description": "object name and auth scope, such as for teams and projects",
|
|
||||||
"required": true,
|
|
||||||
"allowMultiple": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"paramType": "path",
|
|
||||||
"name": "name",
|
|
||||||
"description": "name of the Pod",
|
|
||||||
"required": true,
|
|
||||||
"allowMultiple": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"paramType": "path",
|
|
||||||
"name": "path:*",
|
|
||||||
"description": "path to the resource",
|
|
||||||
"required": true,
|
|
||||||
"allowMultiple": false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"produces": [
|
|
||||||
"*/*"
|
|
||||||
],
|
|
||||||
"consumes": [
|
|
||||||
"*/*"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -5725,36 +5635,6 @@
|
|||||||
"consumes": [
|
"consumes": [
|
||||||
"*/*"
|
"*/*"
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"method": "TRACE",
|
|
||||||
"summary": "proxy TRACE requests to Pod",
|
|
||||||
"nickname": "proxyTRACEPod",
|
|
||||||
"parameters": [
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"paramType": "path",
|
|
||||||
"name": "namespaces",
|
|
||||||
"description": "object name and auth scope, such as for teams and projects",
|
|
||||||
"required": true,
|
|
||||||
"allowMultiple": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"paramType": "path",
|
|
||||||
"name": "name",
|
|
||||||
"description": "name of the Pod",
|
|
||||||
"required": true,
|
|
||||||
"allowMultiple": false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"produces": [
|
|
||||||
"*/*"
|
|
||||||
],
|
|
||||||
"consumes": [
|
|
||||||
"*/*"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -10416,44 +10296,6 @@
|
|||||||
"consumes": [
|
"consumes": [
|
||||||
"*/*"
|
"*/*"
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"method": "TRACE",
|
|
||||||
"summary": "proxy TRACE requests to Service",
|
|
||||||
"nickname": "proxyTRACEService",
|
|
||||||
"parameters": [
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"paramType": "path",
|
|
||||||
"name": "namespaces",
|
|
||||||
"description": "object name and auth scope, such as for teams and projects",
|
|
||||||
"required": true,
|
|
||||||
"allowMultiple": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"paramType": "path",
|
|
||||||
"name": "name",
|
|
||||||
"description": "name of the Service",
|
|
||||||
"required": true,
|
|
||||||
"allowMultiple": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"paramType": "path",
|
|
||||||
"name": "path:*",
|
|
||||||
"description": "path to the resource",
|
|
||||||
"required": true,
|
|
||||||
"allowMultiple": false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"produces": [
|
|
||||||
"*/*"
|
|
||||||
],
|
|
||||||
"consumes": [
|
|
||||||
"*/*"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -10610,36 +10452,6 @@
|
|||||||
"consumes": [
|
"consumes": [
|
||||||
"*/*"
|
"*/*"
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"method": "TRACE",
|
|
||||||
"summary": "proxy TRACE requests to Service",
|
|
||||||
"nickname": "proxyTRACEService",
|
|
||||||
"parameters": [
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"paramType": "path",
|
|
||||||
"name": "namespaces",
|
|
||||||
"description": "object name and auth scope, such as for teams and projects",
|
|
||||||
"required": true,
|
|
||||||
"allowMultiple": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"paramType": "path",
|
|
||||||
"name": "name",
|
|
||||||
"description": "name of the Service",
|
|
||||||
"required": true,
|
|
||||||
"allowMultiple": false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"produces": [
|
|
||||||
"*/*"
|
|
||||||
],
|
|
||||||
"consumes": [
|
|
||||||
"*/*"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -589,7 +589,6 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag
|
|||||||
addProxyRoute(ws, "POST", a.prefix, action.Path, proxyHandler, kind, resource, subresource, hasSubresource, action.Params)
|
addProxyRoute(ws, "POST", a.prefix, action.Path, proxyHandler, kind, resource, subresource, hasSubresource, action.Params)
|
||||||
addProxyRoute(ws, "DELETE", a.prefix, action.Path, proxyHandler, kind, resource, subresource, hasSubresource, action.Params)
|
addProxyRoute(ws, "DELETE", a.prefix, action.Path, proxyHandler, kind, resource, subresource, hasSubresource, action.Params)
|
||||||
addProxyRoute(ws, "HEAD", a.prefix, action.Path, proxyHandler, kind, resource, subresource, hasSubresource, action.Params)
|
addProxyRoute(ws, "HEAD", a.prefix, action.Path, proxyHandler, kind, resource, subresource, hasSubresource, action.Params)
|
||||||
addProxyRoute(ws, "TRACE", a.prefix, action.Path, proxyHandler, kind, resource, subresource, hasSubresource, action.Params)
|
|
||||||
case "CONNECT":
|
case "CONNECT":
|
||||||
for _, method := range connecter.ConnectMethods() {
|
for _, method := range connecter.ConnectMethods() {
|
||||||
doc := "connect " + method + " requests to " + kind
|
doc := "connect " + method + " requests to " + kind
|
||||||
|
Loading…
Reference in New Issue
Block a user