-
- Downloads
Use ASGI scope instead of Host header to reliably detect server port
Host header can be spoofed, making it possible to bypass authentication.
Since proxy exposes one port per worker for the backend to connect to,
it cannot require authentication on these ports. The port exposed to the
outside though, needs to be authenticated to prevent information leaks,
so the proxy server needs to be able to reliably distinguish clients
connecting to the proxy from the outside and the backend services trying
to talk to (emulated) workers.
Signed-off-by:
Andrej Shadura <andrew.shadura@collabora.co.uk>
parent
39574ac1
No related branches found
No related tags found
Please register or sign in to comment