Add info about reverse_proxy on status page

Created on 2 September 2020, almost 4 years ago
Updated 17 March 2023, about 1 year ago

Problem/Motivation

The Reverse proxy settings are a bit tricky to understand and often drive to wrong protocol detection.

Steps to reproduce

Place Drupal behind a reverse proxy and do not set $settings['reverse_proxy'] : no warning is display.

Proposed resolution

Add an information on the status page displaying what info Drupal extract from the headers.

$request->getScheme();
$request->getHost();
$request->getClientIp();

Display a warning if $request::HEADER_X_FORWARDED_FOR is present but $request->getTrustedProxies() is not set (and link to reverse proxy doc).

Display an error if $request->getTrustedProxies() is set but $request->isFromTrustedProxy() return false.
If $request->getTrustedProxies() is set display the trusted proxy list $request->getTrustedProxies()

Remaining tasks

Add info about reverse_proxy on status page.

User interface changes

Add a line in status page.

API changes

None.

Data model changes

None.

Release notes snippet

Add status about

✨ Feature request
Status

Active

Version

9.5

Component
SystemΒ  β†’

Last updated 2 days ago

No maintainer
Created by

πŸ‡«πŸ‡·France O'Briat Nantes

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024