Closed strideynet closed 1 week ago
We encountered a customer who had a non-visible unicode character in their proxy template file and it was causing the regex to not match. It took ages to find this. This PR logs the loaded config in a way that should make this more obvious:
Loaded proxy template template:"\u00a0'^([\\w\\d-]+)\\.([\\w\\d\\.]+)\\.label:([0-9]+)$'" proxy: host: cluster:$2 query:labels.multiple == "$1" search: tbot/service_ssh_multiplexer.go:241
@strideynet See the table below for backport results.
We encountered a customer who had a non-visible unicode character in their proxy template file and it was causing the regex to not match. It took ages to find this. This PR logs the loaded config in a way that should make this more obvious: