The configuration for transforming headers into metadata. This is useful for matching load balancer subsets, logging, etc.

{
"request_rules": [],
"response_rules": []
}

request_rules
response_rules

{
"key": "...",
"value": "...",
"type": "..."
}

(string) The namespace — if this is empty, the filter’s namespace will be used.
key
(string, REQUIRED) The key to use within the namespace.
value

(string) The value to pair with the given key.

When used for a on_header_missing case, a non-empty value must be provided otherwise no metadata is added.

type

A Rule defines what metadata to apply when a header is present or missing.

{
"remove": "..."
}

(string, REQUIRED) The header that triggers this rule — required.

If the value in the KeyValuePair is non-empty, it’ll be used instead of the header value.

The value in the KeyValuePair must be set, since it’ll be used in lieu of the missing header value.

remove

(bool) Whether or not to remove the header after a rule is applied.