[#69] object/acl: Extended requestInfo structure
Add container identifier field. Add send public key field. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
6c3c872ee4
commit
a7782cf1f9
1 changed files with 10 additions and 0 deletions
|
@ -43,6 +43,10 @@ type (
|
||||||
requestRole acl.Role
|
requestRole acl.Role
|
||||||
operation acl.Operation // put, get, head, etc.
|
operation acl.Operation // put, get, head, etc.
|
||||||
owner *owner.ID // container owner
|
owner *owner.ID // container owner
|
||||||
|
|
||||||
|
cid *container.ID
|
||||||
|
|
||||||
|
senderKey []byte
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -351,6 +355,12 @@ func (b Service) findRequestInfo(
|
||||||
info.operation = verb
|
info.operation = verb
|
||||||
info.owner = owner.NewIDFromV2(cnr.GetOwnerID())
|
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
|
return info, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue