forked from TrueCloudLab/frostfs-node
2f38fef31a
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> |
||
---|---|---|
.. | ||
config | ||
processors | ||
timers | ||
alphabet.go | ||
bindings.go | ||
blocktimer.go | ||
indexer.go | ||
innerring.go | ||
locode.go | ||
notary.go | ||
rpc.go | ||
settlement.go | ||
state.go |