frostfs-node/cmd/neofs-node
Leonard Lyubich 4c94faac67 [] node/control: Verify states in SetNetmapStatus RPC server
In previous implementation storage node interpreted all status values
sent in `SetNetmapStatus` RPC as `OFFLINE` except `ONLINE` and
`MAINTENANCE`. This could lead to incorrect processing of new values,
and also didn't allow detection of problems with sending garbage values.

Make implementation of `NodeState` interface used by Control API server
to deny requests with statuses other than protocol-declared enum.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2022-10-05 11:41:49 +03:00
..
config [] network: Allow to use network addresses from the iterator 2022-10-04 12:12:18 +03:00
reputation [] network: Allow to use network addresses from the iterator 2022-10-04 12:12:18 +03:00
accounting.go [] client/balance: remove intermediate wrapper 2022-02-08 09:43:54 +03:00
attributes.go [] Upgrade NeoFS SDK Go with changed netmap package 2022-06-17 15:53:18 +03:00
cache.go [] node: Move common EACLSource interface to core pkg 2022-09-13 10:33:50 +03:00
config.go [] network: Allow to use network addresses from the iterator 2022-10-04 12:12:18 +03:00
container.go [] network: Allow to use network addresses from the iterator 2022-10-04 12:12:18 +03:00
control.go [] services/control: Replicate object over network in EvacuateShard RPC 2022-09-24 13:47:48 +03:00
grpc.go [] neofs-node: Add timeout for grpc GracefulStop() 2022-03-25 17:39:24 +03:00
main.go [] node: Support configuration reread on SIGHUP 2022-10-04 10:08:55 +03:00
metrics.go [] config: Rename metrics and profiler sections 2022-07-18 19:41:22 +03:00
morph.go [] node/netmap: Write log message about parsed NewEpoch event 2022-09-12 09:53:05 +04:00
netmap.go [] node/control: Verify states in SetNetmapStatus RPC server 2022-10-05 11:41:49 +03:00
notificator.go [] engine: Do not use pointers as parameters 2022-06-03 07:35:17 +03:00
object.go [] services/object: Return proper error if session token is missing 2022-09-30 16:13:01 +03:00
pprof.go [] config: Enable metrics and profiler services with a flag 2022-07-18 19:41:22 +03:00
reputation.go [] Upgrade NeoFS SDK Go with changed reputation API 2022-07-06 18:21:24 +03:00
session.go [] Upgrade NeoFS SDK Go module with new IDs 2022-06-01 17:41:45 +03:00
timers.go [] reputation: Resolve race condition 2022-03-16 17:18:30 +03:00
tree.go [] tree: Make ACL checks the same way as for object requests 2022-09-13 10:33:50 +03:00
validate.go [] neofs-node: Validate config before usage 2022-09-27 08:57:20 +03:00
validate_test.go [] neofs-node: Validate config before usage 2022-09-27 08:57:20 +03:00
worker.go [] cmd/neofs-node: Listen new epoch notifications from morph 2020-10-21 14:42:51 +03:00