eubnara commented on PR #5480:
URL: https://github.com/apache/hadoop/pull/5480#issuecomment-1469570800

   Without this patch, whitelist are ignored.
   
![image](https://user-images.githubusercontent.com/12639125/225251063-c900f730-5b7e-4de7-b75b-9a925e4700f5.png)
   
   Even though `hadoop.http.filter.initializers` are set with 
`org.apache.hadoop.security.AuthenticationFilterInitializer,org.apache.hadoop.security.HttpCrossOriginFilterInitializer`,
 `HTTPServer#initSpnego` call makes overwrite `AuthenticationFilter` (because 
it has the same name `authentication`) filter and ignores 
`hadoop.http.authentication.kerberos.endpoint.whitelist`.
   
   On ResourceManager with configurations:
   
   ```
   # core-site.xml
   
hadoop.http.filter.initializers=org.apache.hadoop.security.AuthenticationFilterInitializer,org.apache.hadoop.security.HttpCrossOriginFilterInitializer
   hadoop.http.authentication.kerberos.endpoint.whitelist=/isActive,/jmx,/prom
   
   ...
   
   # yarn-site.xml
   yarn.resourcemanager.webapp.delegation-token-auth-filter.enabled=false
   ```
   
   
   One curios thing is that if `AuthenticationFilterInitializer` is set in 
`hadoop.http.filter.initializers` in core-site.xml, `AuthenticationFilter` 
filter added twice unnecessarily.


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to