mirror of https://github.com/hashicorp/consul
Use stored entmeta to fill authzContext
parent
53ea1f634a
commit
e22f0cc033
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue