fabiolb / fabio

Consul Load-Balancing made simple
https://fabiolb.net
MIT License
7.26k stars 616 forks source link

Incorrect source expansion #835

Open ABAC699 opened 3 years ago

ABAC699 commented 3 years ago

The change Expand ${DC} to consul datacenter does not allow the use of "$[a-ZA-Z0-9]" in the source. Those are removed when it is expanded. Example: the consul tag: "urlprefix-/Lookup/ReferenceDataAccess.svc$1" results in the fabio source "/Lookup/ReferenceDataAccess.svc". The string should not be expanded if no mapping is defined, or there needs to be a way to escape the special character so that the source corresponds to the value defined in consul.