You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Sandor Molnar (Jira)" <ji...@apache.org> on 2023/10/10 10:08:00 UTC

[jira] [Updated] (KNOX-2966) Improve hadoop-jwt cookie logging

     [ https://issues.apache.org/jira/browse/KNOX-2966?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandor Molnar updated KNOX-2966:
--------------------------------
    Issue Type: Improvement  (was: Task)

> Improve hadoop-jwt cookie logging
> ---------------------------------
>
>                 Key: KNOX-2966
>                 URL: https://issues.apache.org/jira/browse/KNOX-2966
>             Project: Apache Knox
>          Issue Type: Improvement
>          Components: KnoxSSO
>            Reporter: Sandor Molnar
>            Assignee: Sandor Molnar
>            Priority: Major
>             Fix For: 2.1.0
>
>
> Currently, the following log messages are displayed when the {{hadoop-jwt}} cookie is added to the response during the KnoxSSO flow:
> - DEBUG: {{Adding the following JWT token as a cookie: $ENTIRE_JWT}}
> - INFO: JWT cookie successfully added.
> - ERROR: {{Unable to add cookie to response. $ERROR_MSG: $ERROR_STACK}}
> Possible improvements:
> - use {{org.apache.knox.gateway.util.Tokens.getTokenDisplayText(String)}} to mask the entire JWT in the {{DEBUG}} message above
> - add the masked JWT info in the {{INFO}} message so that we'll have a better understanding of when a certain SSO cookie was issued/added in the response.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)