[ 
https://issues.apache.org/jira/browse/HADOOP-18666?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17700545#comment-17700545
 ] 

ASF GitHub Bot commented on HADOOP-18666:
-----------------------------------------

eubnara opened a new pull request, #5480:
URL: https://github.com/apache/hadoop/pull/5480

   
   
   <!--
     Thanks for sending a pull request!
       1. If this is your first time, please read our contributor guidelines: 
https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
       2. Make sure your PR title starts with JIRA issue id, e.g., 
'HADOOP-17799. Your PR title ...'.
   -->
   
   ### Description of PR
   
   Thanks to 
[HADOOP-16527](https://issues.apache.org/jira/browse/HADOOP-16527), we can add 
a whitelist of endpoints to skip Kerberos authentication such as `/isActive`, 
`/jmx`, `/prom`.
   However, I found that ResourceManager and Job History Server doesn't repect 
`hadoop.http.authentication.kerberos.endpoint.whitelist`.
   
   To workaround this issue for ResourceManager, set 
`yarn.resourcemanager.webapp.delegation-token-auth-filter.enabled=true` in 
yarn-site.xml.
   However, there is no workaround for Job History Server.
   
   This bug is caused by HttpServer2#initSpnego call without proper 
configurations which starts with "hadoop.http.authentication.".
   
   
   ### How was this patch tested?
   
   Manually tested in internal cluster. It works with ResourceManager (without 
`yarn.resourcemanager.webapp.delegation-token-auth-filter.enabled=true` set), 
Job History Server.
   
   
   ### For code changes:
   
   - [x] Does the title or this PR starts with the corresponding JIRA issue id 
(e.g. 'HADOOP-17799. Your PR title ...')?
   
   




> A whitelist of endpoints to skip Kerberos authentication doesn't work for 
> ResourceManager and Job History Server
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-18666
>                 URL: https://issues.apache.org/jira/browse/HADOOP-18666
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: security
>            Reporter: YUBI LEE
>            Assignee: YUBI LEE
>            Priority: Major
>
> Thanks to HADOOP-16527, we can add a whitelist of endpoints to skip Kerberos 
> authentication such as {{/isActive}}, {{/jmx}}, {{/prom}}.
> However, I found that ResourceManager and Job History Server doesn't repect 
> {{hadoop.http.authentication.kerberos.endpoint.whitelist}}.
> To workaround this issue for ResourceManager, set 
> {{yarn.resourcemanager.webapp.delegation-token-auth-filter.enabled=true}} in 
> yarn-site.xml.
> However, there is no workaround for Job History Server.
> This bug is caused by {{HttpServer2#initSpnego}} call without proper 
> configurations which starts with "{{hadoop.http.authentication.}}".
> I will make a PR soon.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to