From f76fddb28ed19e9fab8005cefcd9faa4d98aa521 Mon Sep 17 00:00:00 2001 From: freddygv Date: Thu, 14 Oct 2021 08:57:40 -0600 Subject: [PATCH] Use stored entmeta to fill authzContext --- agent/consul/connect_ca_endpoint.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/agent/consul/connect_ca_endpoint.go b/agent/consul/connect_ca_endpoint.go index 3df806880..a08cf27cc 100644 --- a/agent/consul/connect_ca_endpoint.go +++ b/agent/consul/connect_ca_endpoint.go @@ -186,8 +186,7 @@ func (s *ConnectCA) Sign( "we are %s", serviceID.Datacenter, s.srv.config.Datacenter) } } else if isAgent { - entMeta := structs.DefaultEnterpriseMetaInPartition(agentID.PartitionOrDefault()) - entMeta.FillAuthzContext(&authzContext) + agentID.GetEnterpriseMeta().FillAuthzContext(&authzContext) if authz.NodeWrite(agentID.Agent, &authzContext) != acl.Allow { return acl.ErrPermissionDenied }