forked from TrueCloudLab/frostfs-api-go
[#207] sdk/client: Fix signature verification in GetEACL method
Extended ACL tables should be signed with RFC-6979 standard. Fix Client .GetEACL implementation to verify eACL signature with SignRFC6979 option. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
5ee500bb43
commit
3ebfef9f94
1 changed files with 1 additions and 0 deletions
|
@ -367,6 +367,7 @@ func (c Client) getEACLV2(ctx context.Context, id *container.ID, opts ...CallOpt
|
||||||
|
|
||||||
return s.GetKey(), s.GetSign()
|
return s.GetKey(), s.GetSign()
|
||||||
},
|
},
|
||||||
|
signature.SignWithRFC6979(),
|
||||||
); err != nil {
|
); err != nil {
|
||||||
return nil, errors.Wrap(err, "incorrect signature")
|
return nil, errors.Wrap(err, "incorrect signature")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue