frostfs-node/cmd/neofs-node
Leonard Lyubich 0ec8f529ab [#842] object/delete: Set tombstone local node as tombstone owner
All objects in NeoFS must have owner ID. In previous implementation Object
Delete service handler set owner ID from request session token. If removal
was executed w/o a session, object with tombstone was prepared incorrectly.
In order to fix this node should set its own ID and become an owner of the
tombstone object.

Extend `NetworkInfo` interface required by Object.Delete handler with
`LocalNodeID` method which returns `owner.ID` of the local node. Implement
the method on `networkState` component of storage node application which is
updated on each node state change in NeoFS network map. Set owner returned
by `LocalNodeID` call as tombstone object's owner in Delete handler.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-11-10 16:18:02 +03:00
..
config [#877] config/engine: use default section for shards 2021-10-28 15:04:14 +03:00
reputation [#957] services/reputation: Refactor usage of NeoFS API client 2021-11-03 18:30:09 +03:00
accounting.go [#607] cmd/node: Serve gRPC on multiple interfaces 2021-06-28 15:52:50 +03:00
attributes.go [#577] cmd/node: Use new config for node configuration 2021-06-02 13:28:15 +03:00
cache.go [#811] cmd/node: Use cache invalidator in container service 2021-09-13 14:50:18 +03:00
config.go [#842] object/delete: Set tombstone local node as tombstone owner 2021-11-10 16:18:02 +03:00
container.go [#872] services/container: Ignore passed routes in load router 2021-10-05 19:29:27 +03:00
control.go [#607] cmd/node: Empty Control server address as disable 2021-06-28 15:52:50 +03:00
grpc.go [#745] node: Add more debug logs on shutdown 2021-08-05 14:44:05 +03:00
main.go [#815] node: Make notary deposit before bootstrap 2021-09-13 14:50:52 +03:00
metrics.go [#745] node: Add more debug logs on shutdown 2021-08-05 14:44:05 +03:00
morph.go [#873] node: Use dynamic notary deposit duration 2021-10-15 12:22:25 +03:00
netmap.go [#937] node: Init node state before gRPC server start 2021-10-22 15:05:00 +03:00
object.go [#842] object/delete: Set tombstone local node as tombstone owner 2021-11-10 16:18:02 +03:00
pprof.go [#745] node: Add more debug logs on shutdown 2021-08-05 14:44:05 +03:00
reputation.go [#812] cmd/neofs-node: Support notary notifications in reputation service 2021-09-13 14:51:07 +03:00
session.go [#607] cmd/node: Serve gRPC on multiple interfaces 2021-06-28 15:52:50 +03:00
timers.go [#873] node: Delete useless notary timer 2021-10-15 12:22:25 +03:00
worker.go [#108] cmd/neofs-node: Listen new epoch notifications from morph 2020-10-21 14:42:51 +03:00