userver: USERVER_LOG_REQUEST_HEADERS_WHITELIST
Loading...
Searching...
No Matches
USERVER_LOG_REQUEST_HEADERS_WHITELIST

USERVER_LOG_REQUEST_HEADERS_WHITELIST Dynamic Config

If the USERVER_LOG_REQUEST_HEADERS option is enabled, you can control which HTTP headers are logged, including their values. Header is suitable if it exactly matches one of the values in the whitelist. Any headers that are not on the whitelist will have their values replaced with *** in the logs. E.g. ["User-Agent", "Accept-Encoding"].

Schema:

# yaml
default: []
description: |
If the @ref USERVER_LOG_REQUEST_HEADERS option is enabled,
you can control which HTTP headers are logged, including their values.
Header is suitable if it exactly matches one of the values in the whitelist.
Any headers that are not on the whitelist will have their values replaced with *** in the logs.
E.g. ["User-Agent", "Accept-Encoding"].
schema:
type: array
x-taxi-cpp-type: std::unordered_set
items:
type: string

For a full list of dynamic configs see Dynamic config schemas list