-
-
Notifications
You must be signed in to change notification settings - Fork 747
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
--forwarded-allow-ips '*' broken in combination with gunicorn #2477
Comments
Confirmed. This happened to me. |
Turns out gunicorn is parsing This validator puts all the comma-separated values into a list which are received with the given parameter. i.e. So basically the check |
Discussed in #2475
Originally posted by andreas-sch-b September 30, 2024
I'm running uvicorn in combination with gunicorn like this:
gunicorn -k uvicorn.workers.UvicornWorker --forwarded-allow-ips "*" ....
This worked well with the 0.30.6, however it's broken with the 0.31.0 of uvicorn. The issue got introduced with the PR [1]. The problem is, that the check for the wildcard changed. In the old version there was a check like
"*" in trusted_hosts
. The new code now checks fortrusted_hosts == "*"
which causes the problem.[1] #2468
The text was updated successfully, but these errors were encountered: