You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/06/22 07:18:00 UTC
[jira] [Work logged] (KNOX-2382) Log the token when it's expired
[ https://issues.apache.org/jira/browse/KNOX-2382?focusedWorklogId=449057&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-449057 ]
ASF GitHub Bot logged work on KNOX-2382:
----------------------------------------
Author: ASF GitHub Bot
Created on: 22/Jun/20 07:17
Start Date: 22/Jun/20 07:17
Worklog Time Spent: 10m
Work Description: smolnar82 opened a new pull request #352:
URL: https://github.com/apache/knox/pull/352
## What changes were proposed in this pull request?
Added the token id and the displayable token representation in the logs so that it's going to be easier to track down a token related issue in the future.
## How was this patch tested?
Tested manually.
----------------------------------------------------------------
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:
users@infra.apache.org
Issue Time Tracking
-------------------
Worklog Id: (was: 449057)
Remaining Estimate: 0h
Time Spent: 10m
> Log the token when it's expired
> -------------------------------
>
> Key: KNOX-2382
> URL: https://issues.apache.org/jira/browse/KNOX-2382
> Project: Apache Knox
> Issue Type: Improvement
> Components: Server
> Affects Versions: 1.4.0
> Reporter: Sandor Molnar
> Assignee: Sandor Molnar
> Priority: Major
> Fix For: 1.5.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> When a Knox Token is issued vie the {{TokenResource}} a useful message is displayed in the log with an obfuscated token representation. For instance:
> {code}
> 2020-06-08 10:54:36,106 INFO service.knoxtoken (TokenResource.java:getAuthenticationToken(390)) - Knox Token service (dt) issued token eyJhbG...sTtTEz (7f876ed1-419a-4e90-a9ae-14d8d8a776a6)
> {code}
> Within {{AbstractJWTFilter}}, when Knox realizes a token is expired, the following message is shown:
> {code}
> 2020-06-08 10:54:37,111 INFO federation.jwt (AbstractJWTFilter.java:validateToken(301)) - Access token has expired; a new one must be acquired.
> {code}
> It'd be extremely useful to show the same obfuscated token representation here too.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)