From dev-return-8503-apmail-ranger-dev-archive=ranger.apache.org@ranger.incubator.apache.org Thu Sep 15 20:07:23 2016 Return-Path: X-Original-To: apmail-ranger-dev-archive@www.apache.org Delivered-To: apmail-ranger-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 768AC19F83 for ; Thu, 15 Sep 2016 20:07:23 +0000 (UTC) Received: (qmail 64712 invoked by uid 500); 15 Sep 2016 20:07:23 -0000 Delivered-To: apmail-ranger-dev-archive@ranger.apache.org Received: (qmail 64678 invoked by uid 500); 15 Sep 2016 20:07:23 -0000 Mailing-List: contact dev-help@ranger.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ranger.incubator.apache.org Delivered-To: mailing list dev@ranger.incubator.apache.org Received: (qmail 64662 invoked by uid 99); 15 Sep 2016 20:07:23 -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, 15 Sep 2016 20:07:23 +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 00E4AC0F61 for ; Thu, 15 Sep 2016 20:07:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.344 X-Spam-Level: X-Spam-Status: No, score=-4.344 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.124] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id c0Z3mBsZqDAa for ; Thu, 15 Sep 2016 20:07:22 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 7CBB25F246 for ; Thu, 15 Sep 2016 20:07:21 +0000 (UTC) Received: (qmail 64287 invoked by uid 99); 15 Sep 2016 20:07:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Sep 2016 20:07:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 81F0C2C0D5C for ; Thu, 15 Sep 2016 20:07:20 +0000 (UTC) Date: Thu, 15 Sep 2016 20:07:20 +0000 (UTC) From: "Madhan Neethiraj (JIRA)" To: dev@ranger.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (RANGER-1145) Policy engine optimization: convert wildcard matches into prefix and suffix match MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/RANGER-1145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15494379#comment-15494379 ] Madhan Neethiraj commented on RANGER-1145: ------------------------------------------ Committed to ranger-0.6: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/d79f127c > Policy engine optimization: convert wildcard matches into prefix and suffix match > --------------------------------------------------------------------------------- > > Key: RANGER-1145 > URL: https://issues.apache.org/jira/browse/RANGER-1145 > Project: Ranger > Issue Type: Bug > Components: plugins > Reporter: Madhan Neethiraj > Assignee: Abhay Kulkarni > > Ranger policies support resource values with wildcards - like test*, *.txt, /finance/*. For values that have wildcards at the beginning or at the end, which is likely to be most common, the match can be converted into endsWith() or startsWith() - which will be more efficient than doing a wildcard match. -- This message was sent by Atlassian JIRA (v6.3.4#6332)