// matchRemoteClusterKey checks exact matches, then finds the match with the most non-wildcard characters
func matchRemoteClusterKey[V any](hostname string, m map[string]V) (string, bool) {
local_store_tls_provider.go
if _, ok := m[hostname]; ok && !strings.Contains(hostname, "*") {
return hostname, true
}