frostfs-node/pkg
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
..
core [#570] *: Use generator of test owner IDs from API Go lib 2021-05-31 20:45:15 +03:00
innerring [#589] ir/container: Verify session token lifetime 2021-06-09 10:17:49 +03:00
local_object_storage [#570] *: Use generator of test owner IDs from API Go lib 2021-05-31 20:45:15 +03:00
metrics [#426] Put prometheus behind pkg/metrics 2021-03-17 10:58:00 +03:00
morph [#584] pkg/innerring: Delete using deprecated methods 2021-06-03 13:59:59 +03:00
network [#567] network/clients: Implement method to close the cached clients 2021-05-31 13:11:37 +03:00
services [#501] object/put: reduce TTL of the relayed request 2021-06-02 10:31:14 +03:00
util [#521] *: use stdlib errors package 2021-05-19 16:42:54 +03:00