diff --git a/pkg/services/object/acl/basic.go b/pkg/services/object/acl/basic.go index 0505117f..b0a9742d 100644 --- a/pkg/services/object/acl/basic.go +++ b/pkg/services/object/acl/basic.go @@ -43,6 +43,10 @@ type ( requestRole acl.Role operation acl.Operation // put, get, head, etc. owner *owner.ID // container owner + + cid *container.ID + + senderKey []byte } ) @@ -351,6 +355,12 @@ func (b Service) findRequestInfo( info.operation = verb info.owner = owner.NewIDFromV2(cnr.GetOwnerID()) + info.cid = cid + + // it is assumed that at the moment the key will be valid, + // otherwise the request would not pass validation + info.senderKey = req.vheader.GetBodySignature().GetKey() + return info, nil }