Skip to content

glob matching improvements #452

@sharbov

Description

@sharbov

Hey,

We've been using fabio for a while now, and we recently started using the glob matcher.

The problem we've encountered was that once we switched the matching strategy it affected all the endpoints matching, in addition to that the glob matcher does not match the '/' signs. these two issues forced us to add many new tags to existing services in order to try and cover all of the possibilities of each endpoint

e.g

urlprefix-/service/foo/*
urlprefix-/service/foo/*/*
urlprefix-/service/foo/*/*/* ...

This is clearly not the preferred solution, I would like to suggest three ways to go about this issue:

  • Add a per tag matching strategy (e.g urlglob-/service/foo/*).
  • Add support for double '*' wild card, which will match '/' signs.
  • Add a new matcher - a regex matcher.

If any of these ideas sounds reasonable to you, I would be happy to open a pull request for them.

relates to #341

Thanks,
Shay

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions