frostfs-node/pkg/innerring
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
..
config [#486] innerring: Add fee configuration 2021-05-05 12:45:16 +03:00
processors [#589] ir/container: Verify session token lifetime 2021-06-09 10:17:49 +03:00
timers [#479] morph/timer: Move block timer to morph package 2021-04-19 09:35:54 +03:00
alphabet.go [#392] ir/alphabet: Rename constant corresponding to I/izhei letter 2021-02-24 19:16:52 +03:00
bindings.go [#324] ir: Measure GAS emission intervals in sidechain blocks 2021-01-29 11:04:30 +03:00
blocktimer.go [#584] pkg/innerring: Delete using deprecated methods 2021-06-03 13:59:59 +03:00
indexer.go [#496] innerring/invoke: remove function wrappers 2021-05-25 13:41:39 +03:00
innerring.go [#589] ir/container: Verify session token lifetime 2021-06-09 10:17:49 +03:00
locode.go [#316] locode/boltdb: Replace all references to the City with Location 2021-02-10 14:05:03 +03:00
notary.go [#486] innerring: Add option to disable only main chain notary support 2021-05-05 12:45:16 +03:00
rpc.go [#567] innerring: Close cached clients on shutdown 2021-05-31 13:11:37 +03:00
settlement.go [#584] pkg/innerring: Delete using deprecated methods 2021-06-03 13:59:59 +03:00
state.go [#496] innerring/invoke: remove function wrappers 2021-05-25 13:41:39 +03:00