mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 22:06:20 +00:00
Use stored entmeta to fill authzContext
This commit is contained in:
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…
x
Reference in New Issue
Block a user