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 A3BC42004F1 for ; Wed, 30 Aug 2017 21:37:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A254B169D2B; Wed, 30 Aug 2017 19:37:10 +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 E95AA169D28 for ; Wed, 30 Aug 2017 21:37:09 +0200 (CEST) Received: (qmail 98201 invoked by uid 500); 30 Aug 2017 19:37:08 -0000 Mailing-List: contact reviews-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: reviews@mesos.apache.org Delivered-To: mailing list reviews@mesos.apache.org Received: (qmail 98190 invoked by uid 99); 30 Aug 2017 19:37:07 -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; Wed, 30 Aug 2017 19:37:07 +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 822061A1474; Wed, 30 Aug 2017 19:37:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.25 X-Spam-Level: *** X-Spam-Status: No, score=3.25 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, KAM_LOTSOFHASH=0.25, RP_MATCHES_RCVD=-0.001] 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 o6ohHCgJI0cs; Wed, 30 Aug 2017 19:37:06 +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 1309861127; Wed, 30 Aug 2017 19:37:06 +0000 (UTC) Received: from reviews.apache.org (unknown [10.41.0.12]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 7A751E0044; Wed, 30 Aug 2017 19:37:05 +0000 (UTC) Received: from reviews-vm2.apache.org (localhost [IPv6:::1]) by reviews.apache.org (ASF Mail Server at reviews-vm2.apache.org) with ESMTP id 57671C402D3; Wed, 30 Aug 2017 19:37:05 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============6503091203517685117==" MIME-Version: 1.0 Subject: Re: Review Request 61189: Added authorization for V1 events. From: Greg Mann To: Anand Mazumdar , Greg Mann , Alexander Rojas Cc: Quinn Leng , mesos Date: Wed, 30 Aug 2017 19:37:05 -0000 Message-ID: <20170830193705.20155.4447@reviews-vm2.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Greg Mann X-ReviewGroup: mesos X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/61189/ X-Sender: Greg Mann X-ReviewBoard-ShipIt: 1 References: <20170819033334.44503.57412@reviews-vm2.apache.org> In-Reply-To: <20170819033334.44503.57412@reviews-vm2.apache.org> Reply-To: Greg Mann X-ReviewRequest-Repository: mesos archived-at: Wed, 30 Aug 2017 19:37:10 -0000 --===============6503091203517685117== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/61189/#review184100 ----------------------------------------------------------- Ship it! LGTM, thanks Quinn! A couple small comments below, but I can fix them while committing. src/tests/api_tests.cpp Lines 2015 (patched) I think you moved the wrong `scheduler` declaration - I was referring to the one in the test you added :) I can fix this while committing. src/tests/api_tests.cpp Lines 2420-2422 (patched) Ah sorry, let's place this block directly after the `AWAIT_READY(event)` call. I can do this while committing. src/tests/api_tests.cpp Lines 2421-2422 (patched) Fits on one line. I can fix this while committing. - Greg Mann On Aug. 19, 2017, 3:33 a.m., Quinn Leng wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/61189/ > ----------------------------------------------------------- > > (Updated Aug. 19, 2017, 3:33 a.m.) > > > Review request for mesos, Anand Mazumdar, Alexander Rojas, and Greg Mann. > > > Bugs: MESOS-7785 > https://issues.apache.org/jira/browse/MESOS-7785 > > > Repository: mesos > > > Description > ------- > > Added authorization filtering for the V1 operator events on the > master, the subscriber should only receive events that are > authorized based on their principal and ACLs. Since the authorizer > is called for every event emitted on the stream, the change of > authorization rule will affect events that the subscribers can > receive. > > > Diffs > ----- > > src/master/http.cpp b09a9d0ab5fab179d0e400932dce7d3ca958d7a8 > src/master/master.hpp d9cfc42646c874661e4ec79322126d93a2caf604 > src/master/master.cpp 7f38a5e21884546d4b4c866ca5918db779af8f99 > src/tests/api_tests.cpp 34480ea6818c904c64cb678562866f0b43dae0d6 > > > Diff: https://reviews.apache.org/r/61189/diff/6/ > > > Testing > ------- > > make check > GLOG_v=2 ./bin/mesos-tests.sh --gtest_filter="ContentType/MasterAPITest.EventsAuthorizationFiltering*" --verbose --gtest_repeat=100 --gtest_break_on_failure > > > Thanks, > > Quinn Leng > > --===============6503091203517685117==--