mirror of https://github.com/hashicorp/consul
Fix a bug with ACL enforcement of reads on namespaced config entries. (#7239)
parent
9a220f3010
commit
444517080b
|
@ -88,6 +88,8 @@ func (c *ConfigEntry) Get(args *structs.ConfigEntryQuery, reply *structs.ConfigE
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
lookupEntry.GetEnterpriseMeta().Merge(&args.EnterpriseMeta)
|
||||||
|
|
||||||
if authz != nil && !lookupEntry.CanRead(authz) {
|
if authz != nil && !lookupEntry.CanRead(authz) {
|
||||||
return acl.ErrPermissionDenied
|
return acl.ErrPermissionDenied
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue