forked from TrueCloudLab/frostfs-node
[#525] morph/container: Accept container session token in PutEACL
`SetEACL` method of latest `Container` contract accepts binary session token as an argument. Provide `SetEACLArgs.SetSessionToken` method. Accept session token as a `[]byte` in `Wrapper.PutEACL` method and attach it to `SetEACLArgs`. Marshal session token from container in `wrapper.PutEACL` function and pass it to the method. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
c4a3adc8b0
commit
959610080a
3 changed files with 17 additions and 4 deletions
|
@ -69,7 +69,7 @@ func (cp *Processor) checkEACLOwnership(binTable []byte, key *keys.PublicKey) er
|
|||
}
|
||||
|
||||
func (cp *Processor) approveSetEACL(e container.SetEACL) {
|
||||
err := cp.cnrClient.PutEACL(e.Table(), e.PublicKey(), e.Signature())
|
||||
err := cp.cnrClient.PutEACL(e.Table(), e.PublicKey(), e.Signature(), nil)
|
||||
if err != nil {
|
||||
cp.log.Error("could not approve set EACL",
|
||||
zap.String("error", err.Error()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue