Skip to content

headers op cannot evaluate REQUESTED_SERVER_NAME #19024

Closed

Description

@lambdai

reported by Jack Muratore https://envoyproxy.slack.com/archives/C78M4KW76/p1637074615179900

"%REQUESTED_SERVER_NAME%" can not be evaluated in the headers op, which can be used by tcp_proxy's tunnel and http router.
I suspect access log cannot use it as well.

The root cause is that this legit var name REQUESTED_SERVER_NAME has the prefix "REQ" and the parser tried to parse it as a format of
"REQ(...)".

Activity

  1. added
    triage
    on Nov 16, 2021
  2. added
    help wanted
    and removed
    triage
    on Nov 17, 2021
  3. banjocat commented on Nov 17, 2021

    @banjocat

    To clarify. It does work in access_logs it just doesn't work in add_headers.

  4. agrawroh commented on Nov 18, 2021

    @agrawroh
    Member

    Created a PR to add it:
    #19038

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions