You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Philip Zampino (Jira)" <ji...@apache.org> on 2020/06/04 20:01:00 UTC
[jira] [Created] (KNOX-2377) Address potential loss of token state
Philip Zampino created KNOX-2377:
------------------------------------
Summary: Address potential loss of token state
Key: KNOX-2377
URL: https://issues.apache.org/jira/browse/KNOX-2377
Project: Apache Knox
Issue Type: Bug
Components: Server
Affects Versions: 1.5.0
Reporter: Philip Zampino
Assignee: Philip Zampino
With the recent performance enhancements associated with token state management (KNOX-2375), there has come the possibility of token state getting lost.
Part of the performance improvement is removing the persistence of token state to the keystore (which is expensive) from the token request processing path, and performing that persistence in a background thread.
It's possible that the gateway could crash or otherwise go down before the state of recently-issued tokens has been persisted to the keystore. Consequently, after the gateway is restarted, subsequent use of these "lost" tokens would result in client authentication failures because the tokens would be unknown to the TokenStateService.
The TokenStateService needs to be able to recover from such scenarios to avoid the loss of token state.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)