object: Pass namespace within context in ACL service #952

Merged
fyrchik merged 1 commit from aarifullin/frostfs-node:fix/object_svc_req_ctx into master 2024-02-02 12:06:41 +00:00

View file

@ -458,6 +458,7 @@ func (b Service) GetRange(request *objectV2.GetRangeRequest, stream object.GetOb
func requestContext(ctx context.Context, reqInfo RequestInfo) context.Context {
return context.WithValue(ctx, object.RequestContextKey, &object.RequestContext{
Namespace: reqInfo.ContainerNamespace(),
SenderKey: reqInfo.SenderKey(),
Role: reqInfo.RequestRole(),
})