From common-issues-return-149858-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Thu Mar 15 15:17:04 2018 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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 0BCA9180654 for ; Thu, 15 Mar 2018 15:17:03 +0100 (CET) Received: (qmail 7189 invoked by uid 500); 15 Mar 2018 14:17:02 -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 6880 invoked by uid 99); 15 Mar 2018 14:17:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2018 14:17:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 31B1B1A0FC3 for ; Thu, 15 Mar 2018 14:17:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -102.311 X-Spam-Level: X-Spam-Status: No, score=-102.311 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id EaumKPEfIlTc for ; Thu, 15 Mar 2018 14:17: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 2FA095FB02 for ; Thu, 15 Mar 2018 14:17:01 +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 A74CCE0446 for ; Thu, 15 Mar 2018 14:17: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 5E26C21498 for ; Thu, 15 Mar 2018 14:17:00 +0000 (UTC) Date: Thu, 15 Mar 2018 14:17:00 +0000 (UTC) From: "Daryn Sharp (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-14445) Delegation tokens are not shared between KMS instances 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-14445?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16= 400454#comment-16400454 ]=20 Daryn Sharp commented on HADOOP-14445: -------------------------------------- I'll make an effort to review today but schedule is very hectic. =C2=A0My l= ast proposal was centered around _not_ having another conf option so I'm no= t pleased that one was added. =C2=A0Initially I'm inclined to do something = similar to Rushabh's last patch but I need to do a brain reload. > Delegation tokens are not shared between KMS instances > ------------------------------------------------------ > > Key: HADOOP-14445 > URL: https://issues.apache.org/jira/browse/HADOOP-14445 > Project: Hadoop Common > Issue Type: Bug > Components: kms > Affects Versions: 2.8.0, 3.0.0-alpha1 > Environment: CDH5.7.4, Kerberized, SSL, KMS-HA, at rest encryptio= n > Reporter: Wei-Chiu Chuang > Assignee: Xiao Chen > Priority: Major > Attachments: HADOOP-14445-branch-2.8.002.patch, HADOOP-14445-bran= ch-2.8.patch, HADOOP-14445.002.patch, HADOOP-14445.003.patch, HADOOP-14445.= 004.patch, HADOOP-14445.05.patch, HADOOP-14445.06.patch, HADOOP-14445.07.pa= tch > > > As discovered in HADOOP-14441, KMS HA using LoadBalancingKMSClientProvide= r do not share delegation tokens. (a client uses KMS address/port as the ke= y for delegation token) > {code:title=3DDelegationTokenAuthenticatedURL#openConnection} > if (!creds.getAllTokens().isEmpty()) { > InetSocketAddress serviceAddr =3D new InetSocketAddress(url.getHo= st(), > url.getPort()); > Text service =3D SecurityUtil.buildTokenService(serviceAddr); > dToken =3D creds.getToken(service); > {code} > But KMS doc states: > {quote} > Delegation Tokens > Similar to HTTP authentication, KMS uses Hadoop Authentication for delega= tion tokens too. > Under HA, A KMS instance must verify the delegation token given by anothe= r KMS instance, by checking the shared secret used to sign the delegation t= oken. To do this, all KMS instances must be able to retrieve the shared sec= ret from ZooKeeper. > {quote} > We should either update the KMS documentation, or fix this code to share = delegation tokens. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org