new skip_xff_append option (#1788)

Added `skip_xff_append` configuration option. When set, proxy would not append it's IP address to `x-forwarded-for` HTTP header.
This commit is contained in:
wasaga 2021-01-20 10:56:29 -05:00 committed by GitHub
parent d9699cbcb9
commit c6b6141d12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 136 additions and 93 deletions

View file

@ -846,6 +846,15 @@ Secure service communication can fail if the external certificate does not match
Refresh cooldown is the minimum amount of time between allowed manually refreshed sessions.
### X-Forwarded-For HTTP Header
- Environmental Variable: `SKIP_XFF_APPEND`
- Config File Key: `skip_xff_append`
- Type: `bool`
- Default: `false`
Do not append proxy IP address to `x-forwarded-for` HTTP header. See [Envoy](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_conn_man/headers.html?highlight=skip_xff_append#x-forwarded-for) docs for more detail.
## Cache Service
The cache service is used for storing user session data.

View file

@ -956,6 +956,17 @@ settings:
Refresh cooldown is the minimum amount of time between allowed manually refreshed sessions.
shortdoc: |
Refresh cooldown is the minimum amount of time between allowed manually refreshed sessions.
- name: "X-Forwarded-For HTTP Header"
keys: ["skip_xff_append"]
attributes: |
- Environmental Variable: `SKIP_XFF_APPEND`
- Config File Key: `skip_xff_append`
- Type: `bool`
- Default: `false`
doc: |
Do not append proxy IP address to `x-forwarded-for` HTTP header. See [Envoy](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_conn_man/headers.html?highlight=skip_xff_append#x-forwarded-for) docs for more detail.
shortdoc: |
Do not append proxy IP address to [x-forwarded-for](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_conn_man/headers.html?highlight=skip_xff_append#x-forwarded-for).
- name: "Cache Service"
doc: |
The cache service is used for storing user session data.