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 EE085200D2E for ; Tue, 17 Oct 2017 06:36:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id ECC0C160BE9; Tue, 17 Oct 2017 04:36:08 +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 316391609EF for ; Tue, 17 Oct 2017 06:36:08 +0200 (CEST) Received: (qmail 31721 invoked by uid 500); 17 Oct 2017 04:36:07 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 31710 invoked by uid 99); 17 Oct 2017 04:36:06 -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; Tue, 17 Oct 2017 04:36:06 +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 2C87BC3AEC for ; Tue, 17 Oct 2017 04:36:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, 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 KlZ9W4N8RtCD for ; Tue, 17 Oct 2017 04:36:05 +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 3B92F5FE3D for ; Tue, 17 Oct 2017 04:36:05 +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 EB6A7E0E4F for ; Tue, 17 Oct 2017 04:36:03 +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 3E7F024390 for ; Tue, 17 Oct 2017 04:36:02 +0000 (UTC) Date: Tue, 17 Oct 2017 04:36:02 +0000 (UTC) From: "Sunil G (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-7338) Support same origin policy for cross site scripting prevention. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 17 Oct 2017 04:36:09 -0000 [ https://issues.apache.org/jira/browse/YARN-7338?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16206= 987#comment-16206987 ]=20 Sunil G commented on YARN-7338: ------------------------------- UI2 is launched as a separate service context in same RM webserver. And UI2= is available in {{:/ui2}} which serves just static pages.=20 New YARN UI2 is a SPA (single page application) which downloads statics fro= m {{:/ui2}}. And then onwards like any general REST client, b= rowser which loaded UI2 statics will contact RM and NM via server's secure = REST end points. Hence UI2 does not impose any issues as of today. Hence I do not think we have to add these filters to UI2 or not. If its nee= ded, we can add filters to ui2 context also, but i would like to hear thoug= hts from all folks. [~leftnoteasy] [~vrushalic] [~eyang] [~Sreenath] Please= help to share your comments. > Support same origin policy for cross site scripting prevention. > --------------------------------------------------------------- > > Key: YARN-7338 > URL: https://issues.apache.org/jira/browse/YARN-7338 > Project: Hadoop YARN > Issue Type: Sub-task > Components: yarn-ui-v2 > Reporter: Vrushali C > > Opening jira as suggested b [~eyang] on the thread for merging YARN-3368 = (new web UI) to branch2 http://mail-archives.apache.org/mod_mbox/hadoop-ya= rn-dev/201610.mbox/%3CCAD++eCmVVQNZQz9YnkVKcXaCzdkg50YiOFxktgk3mMMs9sHmUA@m= ail.gmail.com%3E > ---------- > Ui2 does not seem to support same origin policy for cross site scripting = prevention. > The following parameters has no effect for /ui2: > hadoop.http.cross-origin.enabled =3D true > yarn.resourcemanager.webapp.cross-origin.enabled =3D true > This is because ui2 is designed as a separate web application. WebFilter= s setup for existing resource manager doesn=E2=80=99t apply to the new web = application. > Please open JIRA to track the security issue and resolve the problem prio= r to backporting this to branch-2. > This would minimize the risk to open up security hole in branch-2. > ---------- -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org