forked from TrueCloudLab/frostfs-node
[#505] ir/container: Check key ownership during set eACL handling
Use NeoFS ID contract client to check if public key from notification event is tied to the owner of the container for which the eACL is being changed. Approve changes coming from the owner of the container only. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
b0271aa478
commit
372cba1fca
2 changed files with 36 additions and 2 deletions
|
@ -8,6 +8,7 @@ import (
|
|||
"github.com/nspcc-dev/neofs-node/pkg/innerring/config"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/morph/client"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/morph/client/container/wrapper"
|
||||
neofsid "github.com/nspcc-dev/neofs-node/pkg/morph/client/neofsid/wrapper"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/morph/event"
|
||||
containerEvent "github.com/nspcc-dev/neofs-node/pkg/morph/event/container"
|
||||
"github.com/panjf2000/ants/v2"
|
||||
|
@ -29,6 +30,7 @@ type (
|
|||
alphabetState AlphabetState
|
||||
feeProvider *config.FeeConfig
|
||||
cnrClient *wrapper.Wrapper
|
||||
idClient *neofsid.ClientWrapper
|
||||
}
|
||||
|
||||
// Params of the processor constructor.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue