Sandor Molnar created KNOX-2966:
-----------------------------------

             Summary: Improve hadoop-jwt cookie logging
                 Key: KNOX-2966
                 URL: https://issues.apache.org/jira/browse/KNOX-2966
             Project: Apache Knox
          Issue Type: Task
          Components: KnoxSSO
            Reporter: Sandor Molnar
            Assignee: Sandor Molnar
             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)

Reply via email to