Add support for 'X-Client-IP', 'X-Forwarded-IP', 'X-Real-IP' headers.

This patch introduces three new HTTP headers to facilitate the transfer of IP addresses in legacy infrastructure.

Implements: blueprint extend-x-headers-capability
Change-Id: I7cb902ee892573ffa622f27a36bb341d3dee6a40
This commit is contained in:
Kushnarenko Nikita 2024-04-08 18:05:32 +03:00 committed by NickKush
parent 36e1ec56f2
commit 99b8f2bdc3
1 changed files with 4 additions and 1 deletions

View File

@ -185,7 +185,10 @@ SUPPORTED_SP_TYPES = (SESSION_PERSISTENCE_SOURCE_IP,
# List of HTTP headers which are supported for insertion
SUPPORTED_HTTP_HEADERS = ['X-Forwarded-For',
'X-Forwarded-Port',
'X-Forwarded-Proto']
'X-Forwarded-Proto',
'X-Forwarded-IP',
'X-Client-IP',
'X-Real-IP']
# List of SSL headers for client certificate
SUPPORTED_SSL_HEADERS = ['X-SSL-Client-Verify', 'X-SSL-Client-Has-Cert',