frostfs-node/pkg/services/object/delete
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
..
v2 [#943] service/object: Remove KeyStore from CommonPrm 2021-10-27 20:25:25 +03:00
container.go [#243] object/delete: Implement new service processing 2020-12-11 17:19:37 +03:00
delete.go [#243] object/delete: Implement new service processing 2020-12-11 17:19:37 +03:00
exec.go [#842] object/delete: Set tombstone local node as tombstone owner 2021-11-10 16:18:02 +03:00
local.go [#378] object/delete: Set expiration epoch of the created tombstones 2021-02-19 11:56:32 +03:00
prm.go [#957] services/object: Refactor usage of NeoFS API client 2021-11-03 18:30:09 +03:00
service.go [#842] object/delete: Set tombstone local node as tombstone owner 2021-11-10 16:18:02 +03:00
util.go [#243] services/object: Share common parameters across services 2020-12-11 17:19:37 +03:00