frostfs-node/pkg/innerring/processors
Leonard Lyubich 2f38fef31a [#589] ir/container: Verify session token lifetime
Session tokens have limited lifetime in NeoFS. Container processor should
verify lifetime of the incoming tokens.

Define `NetworkState` interface with `Epoch` method to get number of the
current epoch. Use Netmap contract client's wrapper as `NetworkState` of
Container `Processor`. Check values of token lifetime, and deny if:

  * NBF value is gt the current epoch;
  * IAT is gt the current epoch;
  * EXP is le the current epoch.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-06-09 10:17:49 +03:00
..
alphabet [#496] innerring/invoke: remove function wrappers 2021-05-25 13:41:39 +03:00
audit [#570] *: Use generator of test container IDs from API Go lib 2021-05-31 20:45:15 +03:00
balance [#496] innerring/invoke: remove function wrappers 2021-05-25 13:41:39 +03:00
container [#589] ir/container: Verify session token lifetime 2021-06-09 10:17:49 +03:00
governance [#496] innerring/invoke: remove function wrappers 2021-05-25 13:41:39 +03:00
neofs [#556] innerring/neofs: Process Bind/Unbind events 2021-06-02 10:50:44 +03:00
netmap [#588] Fix go fmt linter errors 2021-06-03 18:59:07 +03:00
reputation [#584] pkg/innerring: Delete using deprecated methods 2021-06-03 13:59:59 +03:00
settlement [#570] *: Remove usage of deprecated elements from API Go library 2021-05-31 20:45:15 +03:00