[
https://issues.apache.org/jira/browse/HADOOP-16354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16859028#comment-16859028
]
Eric Yang commented on HADOOP-16354:
------------------------------------
{code}
+ // if not set, enable anonymous for pseudo authentication
+ if (filterConfig.get(PseudoAuthenticationHandler.ANONYMOUS_ALLOWED)
+ == null) {
+ filterConfig.put(PseudoAuthenticationHandler.ANONYMOUS_ALLOWED, "true");
+ }
{code}
Patch 002 default anonymous to allow to connect to webhdfs even when user
configured to use hadoop.http.authentication.type != simple. This is a
dangerous default that may keep webhdfs open to everyone if system admin did
not know to set hadoop.http.authentication.simple.anonymous.allowed = false.
In the code, it only allows AuthFilter to be configured, when
ProxyUserAuthenticationFilter is not configured. I don't think I full
understand the reasoning for this exclusion. Could you explain again? Thanks
> Enable AuthFilter as default for WebHdfs
> ----------------------------------------
>
> Key: HADOOP-16354
> URL: https://issues.apache.org/jira/browse/HADOOP-16354
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: security
> Affects Versions: 3.3.0
> Reporter: Prabhu Joseph
> Assignee: Prabhu Joseph
> Priority: Major
> Attachments: HADOOP-16354-001.patch, HADOOP-16354-002.patch
>
>
> HADOOP-16314 provides an generic option to configure
> ProxyUserAuthenticationFilterInitializer (Kerberos + doAs support) for all
> the services. If this is not configured, AuthenticationFIlter is used for
> NameNode UI and WebHdfs. Will enable AuthFilter as default for WebHdfs so
> that it is backward compatible.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]