frostfs-node/pkg/services
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
..
accounting [#521] *: use stdlib errors package 2021-05-19 16:42:54 +03:00
audit [#901] *: release worker pools where possible 2021-10-25 18:53:36 +03:00
container [#872] services/container: Ignore passed routes in load router 2021-10-05 19:29:27 +03:00
control [#860] Re-compile protobuf files after make protoc target update 2021-09-29 17:51:33 +03:00
id [#11] Trim the old functionality 2020-10-02 11:22:55 +03:00
netmap [#833] services/netmap: Support new fields of netmap.NetworkInfo 2021-10-15 13:56:19 +03:00
object [#842] object/delete: Set tombstone local node as tombstone owner 2021-11-10 16:18:02 +03:00
object_manager [#645] placement/traverser: Rename Key method of Node type to PublicKey 2021-09-30 20:57:00 +03:00
policer [#885] policer: remove objects for removed container 2021-10-18 12:14:14 +03:00
replicator [#645] *: Use helper functions to build client.NodeInfo structures 2021-09-30 20:57:00 +03:00
reputation [#607] reputation,container: Support address groups in ServerInfo 2021-06-28 15:52:50 +03:00
session [#943] service/object: Check session token expiration 2021-10-27 20:25:25 +03:00
util [#643] pkg: Sync method names and commentaries to them 2021-06-24 16:10:44 +03:00