From 6f91085869fe90f28838b8b829717e66c5b7f54c Mon Sep 17 00:00:00 2001 From: Pierre Souchay Date: Tue, 9 Feb 2021 19:19:40 +0100 Subject: [PATCH] Use lower case for serviceName computation of cache keys --- agent/structs/structs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/structs/structs.go b/agent/structs/structs.go index 9b9740c002..5a10a36a1a 100644 --- a/agent/structs/structs.go +++ b/agent/structs/structs.go @@ -602,7 +602,7 @@ func (r *ServiceSpecificRequest) CacheInfo() cache.RequestInfo { sort.Strings(r.ServiceTags) v, err := hashstructure.Hash([]interface{}{ r.NodeMetaFilters, - r.ServiceName, + strings.ToLower(r.ServiceName), // DEPRECATED (singular-service-tag) - remove this when upgrade RPC compat // with 1.2.x is not required. We still need this in because <1.3 agents // might still send RPCs with singular tag set. In fact the only place we