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 1CE3A200C56 for ; Fri, 14 Apr 2017 14:41:55 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1B991160BA3; Fri, 14 Apr 2017 12:41:55 +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 58F8C160B8C for ; Fri, 14 Apr 2017 14:41:54 +0200 (CEST) Received: (qmail 59930 invoked by uid 500); 14 Apr 2017 12:41:53 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 59801 invoked by uid 99); 14 Apr 2017 12:41:52 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Apr 2017 12:41:52 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 93C82DFC31; Fri, 14 Apr 2017 12:41:52 +0000 (UTC) From: DaanHoogland To: dev@cloudstack.apache.org Reply-To: dev@cloudstack.apache.org References: In-Reply-To: Subject: [GitHub] cloudstack pull request #2046: CLOUDSTACK-7958: Add configuration for limit ... Content-Type: text/plain Message-Id: <20170414124152.93C82DFC31@git1-us-west.apache.org> Date: Fri, 14 Apr 2017 12:41:52 +0000 (UTC) archived-at: Fri, 14 Apr 2017 12:41:55 -0000 Github user DaanHoogland commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/2046#discussion_r111568831 --- Diff: server/src/com/cloud/api/ApiServlet.java --- @@ -290,6 +292,17 @@ void processRequestInContext(final HttpServletRequest req, final HttpServletResp CallContext.register(accountMgr.getSystemUser(), accountMgr.getSystemAccount()); } + if (CallContext.current().getCallingAccount().getType() == Account.ACCOUNT_TYPE_ADMIN) { + s_logger.debug("CIDRs from which Admin accounts are allowed to perform API calls " + adminCidrs); --- End diff -- you don't want to log this on every call. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---