jdecool/scaleway-runtimepublic Fork
⑂ dcf1fb6
Commits
⬇ Clone ▾
git clone https://git.rickub.com/jdecool/scaleway-runtime.git
git clone ssh://git@rickub.com/jdecool/scaleway-runtime.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP

docs: mention that headers with underscores are droppedUnverified

Jérémy DECOOL committed 2026-11-14T12:10:21+01:00 Browse files
dcf1fb6 parent: 5652701
modified README.md +1 -0
@@ -473,6 +473,7 @@ The runtime trusts no proxy, as clients can forge most forwarding headers on Sca
473473 | `getHost()` | The [`host` option](#host) | No `Host` header reaches the function |
474474
475475 `X-Forwarded-For` (the client's value is kept in front), `X-Forwarded-Host`, `X-Forwarded-Port` and `Forwarded` are passed through from the client: they reach the Application as plain headers, and nothing trusts them.
476+Headers whose name holds an underscore (`X_Real_Ip`) are dropped, as nginx and Apache do, since PHP would read them as the platform's ones.
476477
477478 > [!CAUTION]
478479 > Do not configure `framework.trusted_proxies`: the client is already resolved, and trusting `REMOTE_ADDR` or private ranges would make Symfony trust those forgeable headers again.
@@ -473,6 +473,7 @@ The runtime trusts no proxy, as clients can forge most forwarding headers on Sca
473 | `getHost()` | The [`host` option](#host) | No `Host` header reaches the function |473 | `getHost()` | The [`host` option](#host) | No `Host` header reaches the function |
474 474
475 `X-Forwarded-For` (the client's value is kept in front), `X-Forwarded-Host`, `X-Forwarded-Port` and `Forwarded` are passed through from the client: they reach the Application as plain headers, and nothing trusts them.475 `X-Forwarded-For` (the client's value is kept in front), `X-Forwarded-Host`, `X-Forwarded-Port` and `Forwarded` are passed through from the client: they reach the Application as plain headers, and nothing trusts them.
476+Headers whose name holds an underscore (`X_Real_Ip`) are dropped, as nginx and Apache do, since PHP would read them as the platform's ones.
476 477
477 > [!CAUTION]478 > [!CAUTION]
478 > Do not configure `framework.trusted_proxies`: the client is already resolved, and trusting `REMOTE_ADDR` or private ranges would make Symfony trust those forgeable headers again.479 > Do not configure `framework.trusted_proxies`: the client is already resolved, and trusting `REMOTE_ADDR` or private ranges would make Symfony trust those forgeable headers again.