Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id F0AAB200BB6 for ; Fri, 4 Nov 2016 23:57:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id EF57D160AEA; Fri, 4 Nov 2016 22:57:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3DD54160AFE for ; Fri, 4 Nov 2016 23:57:00 +0100 (CET) Received: (qmail 65405 invoked by uid 500); 4 Nov 2016 22:56:59 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 65152 invoked by uid 99); 4 Nov 2016 22:56:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Nov 2016 22:56:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 0987D2C2A6D for ; Fri, 4 Nov 2016 22:56:59 +0000 (UTC) Date: Fri, 4 Nov 2016 22:56:59 +0000 (UTC) From: "Shi Wang (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-13119) Web UI error accessing links which need authorization when Kerberos MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 04 Nov 2016 22:57:01 -0000 [ https://issues.apache.org/jira/browse/HADOOP-13119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15637970#comment-15637970 ] Shi Wang commented on HADOOP-13119: ----------------------------------- Hi [~yuanbo], Your proposes looks good for me, for the second point, there is DelegationTokenAuthenticationFilter that extends AuthenticationFilter and supports proxy user. From my opinion, either we can add proxy user support directly in AuthenticationFilter or use the existing DelegationTokenAuthenticationFilter. It seems adding directly in AuthenticationFilter is more straight forward and touches less files, but need to verify it is harmless and make sense to add it here. To use the existing code in DelegationTokenAuthenticationFilter, need to have an authenticationfilterinitializer to add DelegationTokenAuthenticationFilter in the filterchain. Because yarn is using RMAuthenticationFilterInitializer to support delegation token authentication and proxy user, we may apply it to hadoop common. And by configuring hadoop.http.filter.initializers to self defined authenticationfilterinitializer, we can add filters as needed. > Web UI error accessing links which need authorization when Kerberos > ------------------------------------------------------------------- > > Key: HADOOP-13119 > URL: https://issues.apache.org/jira/browse/HADOOP-13119 > Project: Hadoop Common > Issue Type: Bug > Affects Versions: 2.8.0, 2.7.4 > Reporter: Jeffrey E Rodriguez > Assignee: Yuanbo Liu > Labels: security > Attachments: screenshot-1.png > > > User Hadoop on secure mode. > login as kdc user, kinit. > start firefox and enable Kerberos > access http://localhost:50070/logs/ > Get 403 authorization errors. > only hdfs user could access logs. > Would expect as a user to be able to web interface logs link. > Same results if using curl: > curl -v --negotiate -u tester: http://localhost:50070/logs/ > HTTP/1.1 403 User tester is unauthorized to access this page. > so: > 1. either don't show links if hdfs user is able to access. > 2. provide mechanism to add users to web application realm. > 3. note that we are pass authentication so the issue is authorization to /logs/ > suspect that /logs/ path is secure in webdescriptor so suspect users by default don't have access to secure paths. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org