frostfs-node/pkg/services/object
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
..
acl [#842] object/acl: Check owner and key only if sticky bit is set 2021-11-10 16:18:02 +03:00
delete [#842] object/delete: Set tombstone local node as tombstone owner 2021-11-10 16:18:02 +03:00
get [#957] services/object: Refactor usage of NeoFS API client 2021-11-03 18:30:09 +03:00
head [#957] services/object: Refactor usage of NeoFS API client 2021-11-03 18:30:09 +03:00
internal [#957] services/object: Refactor usage of NeoFS API client 2021-11-03 18:30:09 +03:00
put [#957] services/object: Refactor usage of NeoFS API client 2021-11-03 18:30:09 +03:00
search [#957] services/object: Refactor usage of NeoFS API client 2021-11-03 18:30:09 +03:00
util [#957] services/object: Refactor usage of NeoFS API client 2021-11-03 18:30:09 +03:00
metrics.go [#425] services: Define service interfaces that was removed from API lib 2021-03-17 15:00:37 +03:00
response.go [#521] *: use stdlib errors package 2021-05-19 16:42:54 +03:00
server.go [#425] services: Define service interfaces that was removed from API lib 2021-03-17 15:00:37 +03:00
sign.go [#521] *: use stdlib errors package 2021-05-19 16:42:54 +03:00
transport_splitter.go [#425] services: Define service interfaces that was removed from API lib 2021-03-17 15:00:37 +03:00