Fill the Authz Context with a Sentinel Scope (#6729)
This commit is contained in:
parent
ba9871d1c2
commit
7081643191
|
@ -48,8 +48,9 @@ func kvsPreApply(srv *Server, rule acl.Authorizer, op api.KVOp, dirEnt *structs.
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// TODO (namespaces) use actual ent authz context - ensure we set the Sentinel Scope
|
var authzContext acl.EnterpriseAuthorizerContext
|
||||||
if rule.KeyWrite(dirEnt.Key, nil) != acl.Allow {
|
dirEnt.FillAuthzContext(&authzContext)
|
||||||
|
if rule.KeyWrite(dirEnt.Key, &authzContext) != acl.Allow {
|
||||||
return false, acl.ErrPermissionDenied
|
return false, acl.ErrPermissionDenied
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue