[
https://issues.apache.org/jira/browse/KNOX-2214?focusedWorklogId=384502&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-384502
]
ASF GitHub Bot logged work on KNOX-2214:
----------------------------------------
Author: ASF GitHub Bot
Created on: 10/Feb/20 15:45
Start Date: 10/Feb/20 15:45
Worklog Time Spent: 10m
Work Description: moresandeep commented on pull request #257: KNOX-2214 -
Periodic job to evict expired tokens
URL: https://github.com/apache/knox/pull/257#discussion_r377143722
##########
File path:
gateway-server/src/main/java/org/apache/knox/gateway/services/token/impl/AliasBasedTokenStateService.java
##########
@@ -126,9 +130,9 @@ protected void removeToken(final String token) {
try {
aliasService.removeAliasForCluster(AliasService.NO_CLUSTER_NAME, token);
- aliasService.removeAliasForCluster(AliasService.NO_CLUSTER_NAME,token +
"--max");
+ aliasService.removeAliasForCluster(AliasService.NO_CLUSTER_NAME,token +
"TOKEN_MAX_LIFETIME_POSTFIX");
Review comment:
\<facepalm\> and I was wondering my *--max tokens are not getting deleted.
Thanks @risdenk !
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 384502)
Time Spent: 2h 50m (was: 2h 40m)
> Reaping of expired Knox tokens
> ------------------------------
>
> Key: KNOX-2214
> URL: https://issues.apache.org/jira/browse/KNOX-2214
> Project: Apache Knox
> Issue Type: Bug
> Components: Server
> Affects Versions: 1.4.0
> Reporter: Philip Zampino
> Assignee: Sandeep More
> Priority: Major
> Time Spent: 2h 50m
> Remaining Estimate: 0h
>
> When the TokenStateService is employed, if Knox-issued tokens aren't
> explicitly cancelled, then they remain in the persistent store forever. The
> TokenStateService should maintain a thread that removes expired tokens.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)