[
https://issues.apache.org/jira/browse/KNOX-2223?focusedWorklogId=381957&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-381957
]
ASF GitHub Bot logged work on KNOX-2223:
----------------------------------------
Author: ASF GitHub Bot
Created on: 05/Feb/20 00:07
Start Date: 05/Feb/20 00:07
Worklog Time Spent: 10m
Work Description: risdenk commented on pull request #253: KNOX-2223 - HS2
cookie not stored in HadoopAuthCookieStore
URL: https://github.com/apache/knox/pull/253
## What changes were proposed in this pull request?
This ensures that Knox principal both short
and long will be compared against the cookie
returned. This will match the HS2 cookie.
## How was this patch tested?
* `mvn -T.75C verify -Ppackage,release -Dshellcheck`
----------------------------------------------------------------
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: 381957)
Remaining Estimate: 0h
Time Spent: 10m
> HS2 cookie not stored in HadoopAuthCookieStore
> ----------------------------------------------
>
> Key: KNOX-2223
> URL: https://issues.apache.org/jira/browse/KNOX-2223
> Project: Apache Knox
> Issue Type: Bug
> Reporter: Kevin Risden
> Assignee: Kevin Risden
> Priority: Major
> Fix For: 1.4.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> HadoopAuthCookieStore checks to see if the cookie corresponds to Knox after
> KNOX-1341 and further improved in KNOX-2026.
> The HS2 cookie format doesn't match what Knox expects though. Knox expects
> the cookie to have the entire principal (knox/[email protected]). HS2
> generates the authentication cookie based on the short name just "knox".
> https://github.com/apache/hive/blob/master/service/src/java/org/apache/hive/service/auth/HttpAuthUtils.java#L83
> This causes a mismatch and Knox never stores the HS2 cookie. This results in
> repeated Knox Kerberos auth to HS2 which is a performance penalty.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)