Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
arkodg opened this issue Jan 17, 2025 · 1 comment
Open
Assignees
Labels
documentation Improvements or additions to documentation
Milestone

Comments

@arkodg
Copy link
Contributor

arkodg commented Jan 17, 2025

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.

@arkodg arkodg added triage documentation Improvements or additions to documentation help wanted Extra attention is needed and removed triage labels Jan 17, 2025
@arkodg arkodg added this to the v1.3.0 milestone Jan 17, 2025
@mahdikhashan
Copy link

@arkodg hey, i'd like to work on this issue as my first contribution to the project - would you please assign it to me to prevent duplicate work?

@arkodg arkodg removed the help wanted Extra attention is needed label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants