[#66] Check basic ACL in object service pipeline

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-10-02 14:41:29 +03:00 committed by Alex Vanin
parent 801999c577
commit 6fe6005e71

View file

@ -13,6 +13,7 @@ import (
"github.com/nspcc-dev/neofs-node/pkg/local_object_storage/localstore" "github.com/nspcc-dev/neofs-node/pkg/local_object_storage/localstore"
objectTransportGRPC "github.com/nspcc-dev/neofs-node/pkg/network/transport/object/grpc" objectTransportGRPC "github.com/nspcc-dev/neofs-node/pkg/network/transport/object/grpc"
objectService "github.com/nspcc-dev/neofs-node/pkg/services/object" objectService "github.com/nspcc-dev/neofs-node/pkg/services/object"
"github.com/nspcc-dev/neofs-node/pkg/services/object/acl"
deletesvc "github.com/nspcc-dev/neofs-node/pkg/services/object/delete" deletesvc "github.com/nspcc-dev/neofs-node/pkg/services/object/delete"
deletesvcV2 "github.com/nspcc-dev/neofs-node/pkg/services/object/delete/v2" deletesvcV2 "github.com/nspcc-dev/neofs-node/pkg/services/object/delete/v2"
getsvc "github.com/nspcc-dev/neofs-node/pkg/services/object/get" getsvc "github.com/nspcc-dev/neofs-node/pkg/services/object/get"
@ -254,20 +255,27 @@ func initObjectService(c *cfg) {
objectGRPC.RegisterObjectServiceServer(c.cfgGRPC.server, objectGRPC.RegisterObjectServiceServer(c.cfgGRPC.server,
objectTransportGRPC.New( objectTransportGRPC.New(
objectService.NewSignService( acl.NewBasicChecker(
c.key, acl.NewSenderClassifier(
objectService.NewTransportSplitter( c.cfgNetmap.wrapper,
c.cfgGRPC.maxChunkSize, c.cfgNetmap.wrapper,
c.cfgGRPC.maxAddrAmount, ),
&objectSvc{ c.cfgObject.cnrStorage,
put: sPutV2, objectService.NewSignService(
search: sSearchV2, c.key,
head: sHeadV2, objectService.NewTransportSplitter(
rng: sRangeV2, c.cfgGRPC.maxChunkSize,
get: sGetV2, c.cfgGRPC.maxAddrAmount,
rngHash: sRangeHashV2, &objectSvc{
delete: sDeleteV2, put: sPutV2,
}, search: sSearchV2,
head: sHeadV2,
rng: sRangeV2,
get: sGetV2,
rngHash: sRangeHashV2,
delete: sDeleteV2,
},
),
), ),
), ),
), ),