Return-Path: X-Original-To: apmail-mesos-reviews-archive@minotaur.apache.org Delivered-To: apmail-mesos-reviews-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D9AB118EBC for ; Wed, 5 Aug 2015 07:55:16 +0000 (UTC) Received: (qmail 24257 invoked by uid 500); 5 Aug 2015 07:55:16 -0000 Delivered-To: apmail-mesos-reviews-archive@mesos.apache.org Received: (qmail 24232 invoked by uid 500); 5 Aug 2015 07:55:16 -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 24206 invoked by uid 99); 5 Aug 2015 07:55:16 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Aug 2015 07:55:16 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id E1977D8C42; Wed, 5 Aug 2015 07:55:14 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============6574766504403394408==" MIME-Version: 1.0 Subject: Re: Review Request 36049: Added support for modularized Authorizer From: "Alexander Rojas" To: "Till Toenshoff" , "Adam B" , "Bernd Mathiske" , "Jan Schlicht" Cc: "mesos" , "Alexander Rojas" Date: Wed, 05 Aug 2015 07:55:14 -0000 Message-ID: <20150805075514.11538.74037@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Alexander Rojas" X-ReviewGroup: mesos X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/36049/ X-Sender: "Alexander Rojas" References: <20150803143457.4206.44295@reviews.apache.org> In-Reply-To: <20150803143457.4206.44295@reviews.apache.org> Reply-To: "Alexander Rojas" X-ReviewRequest-Repository: mesos --===============6574766504403394408== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On Aug. 3, 2015, 4:34 p.m., Bernd Mathiske wrote: > > src/local/local.cpp, line 221 > > > > > > That's a bit too subtle for me. Proposals, either: > > - pass the acls to the custom authorizer and let it decide what to do with them > > - or disallow the presence of both flags, terminate the slave with an error. > > > > The latter would also greatly simplify the control flow here. The ideal would be to remove the whole `Authorizer::initialize()`, however we cannot disallow the presence of both flags since `--authorizers` is always set (with a default value). True, the code ain't pretty, but instead of giving it a make up, I would rather push for a long term solution (removing the initialize method at least with that signature), and then entirely remove this code. - Alexander ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/36049/#review93906 ----------------------------------------------------------- On Aug. 4, 2015, 6:26 p.m., Alexander Rojas wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/36049/ > ----------------------------------------------------------- > > (Updated Aug. 4, 2015, 6:26 p.m.) > > > Review request for mesos, Adam B, Bernd Mathiske, Jan Schlicht, and Till Toenshoff. > > > Bugs: MESOS-2947 > https://issues.apache.org/jira/browse/MESOS-2947 > > > Repository: mesos > > > Description > ------- > > Adds and integrates helper classes needed to support an `Authorizer` module. Also adds a flag to the master, allowing the selection of an `Authorizer` module. > > > Diffs > ----- > > include/mesos/authorizer/authorizer.hpp PRE-CREATION > include/mesos/module/authorizer.hpp PRE-CREATION > src/Makefile.am 54eaf205eecb6bf1a9a5c4b5ddad55f46ad635ec > src/authorizer/authorizer.cpp PRE-CREATION > src/local/local.cpp 1953d84c75a83f4ace944d6243456235d8a193ff > src/master/constants.hpp 7cec18b7fdfd3b96cde42a30d217c026b2695dce > src/master/constants.cpp fbcae60c43e835f96ec061bd0e9f7961e31fc341 > src/master/flags.hpp f2cd19a6edfaa4e5bb31f024ef8d5beda32fbc2f > src/master/flags.cpp 60ac64d98d53f74f904846b27a3833a7c44a9756 > src/master/main.cpp e05a472b86170eb26df26aaa4b65437fcdd413ce > src/module/manager.cpp 909ca56eea85d365cb9ebe1b3cce43051cabb670 > src/tests/cluster.hpp ba17c0c74a9dc36c595c4ad77fe68be94c5c7c0b > > Diff: https://reviews.apache.org/r/36049/diff/ > > > Testing > ------- > > make check > > > Thanks, > > Alexander Rojas > > --===============6574766504403394408==--