From dev-return-49132-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Tue Feb 6 00:31:04 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 7EE3E180647 for ; Tue, 6 Feb 2018 00:31:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 6D259160C5A; Mon, 5 Feb 2018 23:31:04 +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 B5A5B160C3B for ; Tue, 6 Feb 2018 00:31:03 +0100 (CET) Received: (qmail 45786 invoked by uid 500); 5 Feb 2018 23:31:02 -0000 Mailing-List: contact dev-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list dev@phoenix.apache.org Received: (qmail 45774 invoked by uid 99); 5 Feb 2018 23:31:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Feb 2018 23:31:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 5C51BC0115 for ; Mon, 5 Feb 2018 23:31:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Uz7zj3JFoxsi for ; Mon, 5 Feb 2018 23:31:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id D86B95F33F for ; Mon, 5 Feb 2018 23:31:00 +0000 (UTC) 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 535F8E00CA for ; Mon, 5 Feb 2018 23:31:00 +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 16A3421E86 for ; Mon, 5 Feb 2018 23:31:00 +0000 (UTC) Date: Mon, 5 Feb 2018 23:31:00 +0000 (UTC) From: "Josh Elser (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PHOENIX-4533) Phoenix Query Server should not use SPNEGO principal to proxy user requests 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/PHOENIX-4533?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16= 353094#comment-16353094 ]=20 Josh Elser commented on PHOENIX-4533: ------------------------------------- [~lbronshtein], are you sure the ITs are passing? Remember that Maven integ= ration tests are executed with the {{mvn verify}} lifecycle phase instead o= f the {{mvn package}} phase (which is for unit tests). I'm seeing the ITs failing with the following exception in the logs: {noformat} 2018-02-05 18:21:48,053 DEBUG [pool-55-thread-1] server.QueryServer(236): C= urrent user is phoenixqs/localhost@EXAMPLE.COM (auth:KERBEROS) 2018-02-05 18:21:48,054 FATAL [pool-55-thread-1] server.QueryServer(283): U= nrecoverable service error. Shutting down. java.lang.IllegalArgumentException: Could not find '@' symbol in 'HTTP/loca= lhost' to parse the Kerberos realm from the principal at org.apache.calcite.avatica.server.HttpServer$Builder.withSpnego(= HttpServer.java:489) at org.apache.phoenix.queryserver.server.QueryServer.run(QueryServe= r.java:261) at org.apache.phoenix.queryserver.server.QueryServer.run(QueryServe= r.java:377) at org.apache.phoenix.end2end.SecureQueryServerIT$2$1.run(SecureQue= ryServerIT.java:254) at org.apache.phoenix.end2end.SecureQueryServerIT$2$1.run(SecureQue= ryServerIT.java:252) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:360) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupIn= formation.java:1734) at org.apache.phoenix.end2end.SecureQueryServerIT$2.run(SecureQuery= ServerIT.java:252) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.ja= va:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExec= utor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExe= cutor.java:624) at java.lang.Thread.run(Thread.java:748) {noformat} Similarly, the {{startQueryServer()}} method in {{SecureQueryServerIT}} isn= 't catching and failing the test like it should which is why the test hung = instead of failing outright. LMK if this isn't clear. > Phoenix Query Server should not use SPNEGO principal to proxy user reques= ts > -------------------------------------------------------------------------= -- > > Key: PHOENIX-4533 > URL: https://issues.apache.org/jira/browse/PHOENIX-4533 > Project: Phoenix > Issue Type: Improvement > Reporter: Lev Bronshtein > Assignee: Lev Bronshtein > Priority: Minor > Attachments: PHOENIX-4533.1.patch > > > Currently the HTTP/ principal is used by various components in the HADOOP= ecosystem to perform SPNEGO authentication.=C2=A0 Since there can only be = one HTTP/ per host, even outside of the Hadoop ecosystem, the keytab contai= ning key material for local HTTP/ principal is shared among a few applicati= ons.=C2=A0 With so many applications having access to the HTTP/ credentials= , this increases the chances of an attack on the proxy user capabilities of= Hadoop.=C2=A0 This JIRA proposes that two different key tabs can be used t= o > 1. Authenticate kerberized web requests > 2. Communicate with the phoenix back end -- This message was sent by Atlassian JIRA (v7.6.3#76005)