encode / uvicorn

An ASGI web server, for Python. 🦄
https://www.uvicorn.org/
BSD 3-Clause "New" or "Revised" License
8.61k stars 748 forks source link

Add support for `[*]` in trusted hosts #2480

Closed theyashl closed 1 month ago

theyashl commented 1 month ago

Summary

Fixed trusted host parsing for always trust case. This PR will fix allowing all networks upon passing --forwarded-allow-ips as * from gunicorn with uvicorn as a worker class.

The fix ensures that gunicorn integration and uvicorn as a standalone application will work fine for storing and validating trusted networks.

Complete RCA is present on issue: #2477

Checklist

theyashl commented 1 month ago

@Kludex requesting your review and inputs for this PR :)

Kludex commented 1 month ago

Please change the title as well.