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 5BDD7200CF0 for ; Thu, 7 Sep 2017 08:43:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5A4A8161CDC; Thu, 7 Sep 2017 06:43:11 +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 A285A161CAD for ; Thu, 7 Sep 2017 08:43:10 +0200 (CEST) Received: (qmail 17158 invoked by uid 500); 7 Sep 2017 06:43:09 -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 17147 invoked by uid 99); 7 Sep 2017 06:43:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Sep 2017 06:43:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 89370D7AEE for ; Thu, 7 Sep 2017 06:43:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id M91zsCD4Awgn for ; Thu, 7 Sep 2017 06:43:04 +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 0BAEC5FB17 for ; Thu, 7 Sep 2017 06:43:04 +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 EAAFFE0373 for ; Thu, 7 Sep 2017 06:43: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 9771D24147 for ; Thu, 7 Sep 2017 06:43:01 +0000 (UTC) Date: Thu, 7 Sep 2017 06:43:01 +0000 (UTC) From: "Sivaguru Sankaridurg (JIRA)" To: common-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HADOOP-14845) getFileStatus not making any auth checks MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 07 Sep 2017 06:43:11 -0000 Sivaguru Sankaridurg created HADOOP-14845: --------------------------------------------- Summary: getFileStatus not making any auth checks Key: HADOOP-14845 URL: https://issues.apache.org/jira/browse/HADOOP-14845 Project: Hadoop Common Issue Type: Bug Components: fs/azure Reporter: Sivaguru Sankaridurg The HDFS spec requires only traverse checks for any file accessed via getFi= leStatus ... and since WASB does not support traverse checks, removing this= call effectively removed all protections for the getFileStatus call. The r= easoning at that time was that doing a performAuthCheck was the wrong thing= to do, since it was going against the spec....and that the correct fix to = the getFileStatus issue was to implement traverse checks rather than go aga= inst the spec by calling performAuthCheck. The side-effects of such a chang= e were not fully clear at that time, but the thinking was that it was safer= to remain true to the spec, as far as possible. The reasoning remains correct even today. But in view of the security hole = introduced by this change (that anyone can load up any other user's data in= hive), and keeping in mind that WASB does not intend to implement traverse= checks, we propose a compromise. We propose (re)introducing a read-access check to getFileStatus(), that wou= ld check the existing ancestor for read-access whenever invoked. Although n= ot perfect (in that it is a departure from the spec), we believe that it is= a good compromise between having no checks at all; and implementing full-b= lown traverse checks. For scenarios that deal with intermediate folders like mkdirs, the call wou= ld check for read access against an existing ancestor (when invoked from sh= ell) for intermediate non-existent folders =E2=80=93 {{ mkdirs /foo/bar, wh= ere only "/" exists, would result in read-checks against "/" for "/","/foo"= and "/foo/bar" }}. This can be thought of, as being a close-enough substit= ute for the traverse checks that hdfs does. For other scenarios that don't deal with non-existent intermediate folders = =E2=80=93 like read, delete etc, the check will happen against the parent. = Once again, we can think of the read-check against the parent as a substitu= te for the traverse check, which can be customized for various users with r= anger policies. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-dev-help@hadoop.apache.org