From common-dev-return-102291-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Fri Jun 7 19:00:09 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 9E84C18067E for ; Fri, 7 Jun 2019 21:00:09 +0200 (CEST) Received: (qmail 20878 invoked by uid 500); 7 Jun 2019 19:00:07 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 20867 invoked by uid 99); 7 Jun 2019 19:00:07 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jun 2019 19:00:07 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 190CCE2D3C for ; Fri, 7 Jun 2019 19:00:02 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 50B222463B for ; Fri, 7 Jun 2019 19:00:01 +0000 (UTC) Date: Fri, 7 Jun 2019 19:00:01 +0000 (UTC) From: "Eric Yang (JIRA)" To: common-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Reopened] (HADOOP-16095) Support impersonation for AuthenticationFilter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-16095?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric Yang reopened HADOOP-16095: -------------------------------- Found an issue with distcp backward compatibility, opened HADOOP-16356 to t= rack required changes. > Support impersonation for AuthenticationFilter > ---------------------------------------------- > > Key: HADOOP-16095 > URL: https://issues.apache.org/jira/browse/HADOOP-16095 > Project: Hadoop Common > Issue Type: New Feature > Components: security > Reporter: Eric Yang > Assignee: Eric Yang > Priority: Major > Fix For: 3.3.0 > > Attachments: HADOOP-16095.004.patch > > > External services or YARN service may need to call into WebHDFS or YARN R= EST API on behave of the user using web protocols. It would be good to supp= ort impersonation mechanism in AuthenticationFilter or similar extensions. = The general design is similar to UserGroupInformation.doAs in RPC layer. > The calling service credential is verified as a proxy user coming from a = trusted host=C2=A0verifying Hadoop proxy user ACL on the server side. If pr= oxy user ACL allows proxy user to become doAs user. HttpRequest object will= report REMOTE_USER as doAs user. This feature enables web application logi= c to be written with minimal changes to call Hadoop API with UserGroupInfor= mation.doAs() wrapper. > h2. HTTP Request > A few possible options: > 1. Using query parameter to pass doAs user: > {code:java} > POST /service?doAs=3Dfoobar > Authorization: [proxy user Kerberos token] > {code} > 2. Use HTTP Header to pass doAs user: > {code:java} > POST /service > Authorization: [proxy user Kerberos token] > x-hadoop-doas: foobar > {code} > h2. HTTP Response > 403 - Forbidden (Including impersonation is not allowed) > h2. Proxy User ACL requirement > Proxy user kerberos token maps to a service principal, such as yarn/host1= .example.com. The host part of the credential and HTTP request origin are b= oth validated with *hadoop.proxyuser.yarn.hosts* ACL. doAs user group membe= rship or identity is checked with either *hadoop.proxyuser.yarn.groups* or = *hadoop.proxyuser.yarn.users*. This governs the caller is coming from autho= rized host and belong to authorized group. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-dev-help@hadoop.apache.org