Skip to content

Feature Request: Support for inverse route header matching #2101

Closed

Description

@brirams

I'd like to be able to construct an rds.Route that will be matched if a header is not a certain value or if it's not present at all. Currently, one could do the former with a negative lookahead regex but doing so means that the header must at least be present in order for the route to be matched. Ideally, envoy would have first class support for inverse matching that would follow these semantics:

For $header_a, match if:

  • $header_a != $desired_value
    OR
  • $header_a is not present in request headers

Context: https://envoyproxy.slack.com/archives/C78M4KW76/p1511652507000035

Activity

  1. added
    beginner
    enhancement
    help wanted
    on Nov 26, 2017
  2. gumpt commented on May 16, 2018

    @gumpt
    Member

    If this isn't being worked on by anyone else, and the feature is still desired, I'd be interested in working on it.

  3. mattklein123 commented on May 16, 2018

    @mattklein123
    Member

    @gumpt have at it!

  4. added this to the 1.7.0 milestone on May 16, 2018
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

    beginnerenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions