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

Yuanbo Liu edited comment on HADOOP-13707 at 10/11/16 3:27 PM:
---------------------------------------------------------------

[~aw] Thanks for your response.
Non-admin users shouldn't be looking at it in security environment. But if HTTP 
SPNEGO is not enabled, that is to say, in non-security environment for http 
sever, users cannot be authenticated and passed to NameNode, and "/logs" should 
be accessed by all users.

{quote}
It's probably also worth pointing out that these logs are typically huge...
{quote}
Agree with you. I think the biggest feature of "/logs" is to provide urls to 
download logs. Browsing logs online shouldn't be encouraged.


was (Author: yuanbo):
[~aw] Thanks for your response.
Non-admin users shouldn't be looking at it in security environment. But if HTTP 
SPNEGO is not enabled, that is to say, in non-security environment for http 
sever, users cannot be authenticated and passed to NameNode, and "/logs" should 
be accessed by all users.

> If kerberos is enabled while HTTP SPNEGO is not configured, some links cannot 
> be accessed
> -----------------------------------------------------------------------------------------
>
>                 Key: HADOOP-13707
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13707
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Yuanbo Liu
>              Labels: security
>         Attachments: HADOOP-13707.001.patch
>
>
> In {{HttpServer2#hasAdministratorAccess}}, it uses 
> `hadoop.security.authorization` to detect whether HTTP is authenticated.
> It's not correct, because enabling Kerberos and HTTP SPNEGO are two steps. If 
> Kerberos is enabled while HTTP SPNEGO is not, some links cannot be accessed, 
> such as "/logs", and it will return error message as below:
> {quote}
> HTTP ERROR 403
> Problem accessing /logs/. Reason:
> User dr.who is unauthorized to access this page.
> {quote}
> We should use {{hadoop.http.authentication.type}} instead of 
> {{hadoop.security.authorization}} to detect whether HTTP authentication is 
> enabled, if the value of  {{hadoop.http.authentication.type}}  equals 
> `simple`, anybody has administrator access.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to