You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started using APISIX, and everything works fairly smooth out of the box. I managed to get cert-manager to work as well.
However, after enabling gateway.ingress I started running into 400 Bad Request - Request Header Or Cookie Too Large errors.
After some debugging I realize that what's going on is that the upstream of the /* route created by apisix-ingress-controller is using pass_host: pass which results in a loop, and the 400 Bad Request occurs after n tries.
At least, that's the theory, since changing it to pass_host: node solves the problem, and this is replicable through the apisix pod. Solving the problem in the sense that it will return {"error_msg":"404 Route Not Found"}.
As a side note, this doesn't occur when you define additional path ie /path to a different upstream. That will resolve fine.
Anyway, what is the recommended way to deal with this situation? Am I supposed to use a different path, patch the upstream, just let it 400 if there's no specific path specified? Or am I missing something entirely?
I would generally ignore it, and let it 400 but it seems relatively prone to (D)DoS attacks to due the fact you can use it to amplify traffic (request * nretries).
The text was updated successfully, but these errors were encountered:
Hi,
I started using
APISIX
, and everything works fairly smooth out of the box. I managed to getcert-manager
to work as well.However, after enabling
gateway.ingress
I started running into400 Bad Request - Request Header Or Cookie Too Large
errors.values.yaml
:After some debugging I realize that what's going on is that the
upstream
of the/*
route created byapisix-ingress-controller
is usingpass_host: pass
which results in a loop, and the400 Bad Request
occurs aftern
tries.At least, that's the theory, since changing it to
pass_host: node
solves the problem, and this is replicable through theapisix pod
. Solving the problem in the sense that it will return{"error_msg":"404 Route Not Found"}
.As a side note, this doesn't occur when you define additional
path
ie/path
to a differentupstream
. That will resolve fine.Anyway, what is the recommended way to deal with this situation? Am I supposed to use a different
path
, patch theupstream
, just let it400
if there's no specificpath
specified? Or am I missing something entirely?I would generally ignore it, and let it
400
but it seems relatively prone to (D
)DoS
attacks to due the fact you can use it to amplify traffic (request * nretries
).The text was updated successfully, but these errors were encountered: