Skip to content

docs: Highlight how a format string can be used as a value for a header #5087

Open
@arkodg

Description

@arkodg

Description:

Describe the issue.

Envoy allows you to use format strings https://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#config-access-log-format-strings which can use set as header values.

here's an example where it can used to set the downstream addr value in the X-Proxy-Connection header.

    - filters:
        - type: URLRewrite
          urlRewrite:
            path:
              type: ReplacePrefixMatch
              replacePrefixMatch: /
        - type: RequestHeaderModifier
          requestHeaderModifier:
            set:
              - name: X-Proxy-Connection
                value: "%DOWNSTREAM_REMOTE_ADDRES%"

Would be great to add a similar example where users can access traffic attributes using this technique

and add this into https://gateway.envoyproxy.io/docs/tasks/traffic/http-request-headers/

[optional Relevant Links:]

Any extra documentation required to understand the issue.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationstale

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions