frostfs-node/pkg/innerring/processors
Leonard Lyubich f64ae55806 [#1681] ir/netmap: Require MAINTENANCE mode to be allowed by network
There is a need to prevent limitless abuse of MAINTENANCE status of the
storage nodes. To do this, configuration of the NeoFS network is going
to be extended with the flag which allows the state. Until this is done,
it makes sense to prepare a site for this in the code.

Define `state.NetworkSettings` interface as an abstraction of global
network configuration within the `state` package. Make
`NetMapCandidateValidator` to depend on `NetworkSettings` and provide
corresponding field setter. Change `VerifyAndUpdate` method's behavior
to return an error for candidates with MAINTENANCE state if this state
is disallowed by the network configuration. Provide `NetworkSettings`
from the wrapper over Netmap contract's client on Inner Ring application
side. The provider is implemented to statically disallow MAINTENANCE
mode in order to save previous behavior.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
Signed-off-by: Leonard Lyubich <ctulhurider@gmail.com>
2022-10-05 11:41:49 +03:00
..
alphabet [#1513] Upgrade NeoFS SDK Go with changed netmap package 2022-06-17 15:53:18 +03:00
audit [#1674] *: Expire entities after the expiration epoch 2022-09-12 19:56:59 +04:00
balance [#1636] ir: Listen balance contract in balance processor 2022-07-28 18:47:20 +03:00
container [#1687] *: Perform go fmt using go v1.19 2022-08-22 18:59:57 +03:00
governance [#1320] English Check 2022-05-11 10:40:02 +03:00
neofs [#1400] owner: Upgrade SDK package 2022-05-23 15:33:14 +03:00
netmap [#1681] ir/netmap: Require MAINTENANCE mode to be allowed by network 2022-10-05 11:41:49 +03:00
reputation [#1570] Upgrade NeoFS SDK Go with changed reputation API 2022-07-06 18:21:24 +03:00
settlement [#1487] innerring: Log errors in processors 2022-06-07 14:11:58 +03:00
subnet [#1687] *: Perform go fmt using go v1.19 2022-08-22 18:59:57 +03:00