You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by me...@apache.org on 2021/05/14 05:51:32 UTC

[ranger] 02/03: RANGER-3251: [Ranger Audit Filters UI] Tag, KMS service not showing the audit filters in UI section

This is an automated email from the ASF dual-hosted git repository.

mehul pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git

commit 747033bb0aaeaa6158a8dd02873b3c21aaadda60
Author: Kishor Gollapalliwar <ki...@gmail.com>
AuthorDate: Tue May 11 20:18:25 2021 +0530

    RANGER-3251: [Ranger Audit Filters UI] Tag, KMS service not showing the audit filters in UI section
    
    Signed-off-by: Mehul Parikh <me...@apache.org>
---
 .../main/resources/service-defs/ranger-servicedef-kms.json  | 12 ++++++++++++
 .../main/resources/service-defs/ranger-servicedef-tag.json  | 13 ++++++++++++-
 2 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/agents-common/src/main/resources/service-defs/ranger-servicedef-kms.json b/agents-common/src/main/resources/service-defs/ranger-servicedef-kms.json
index 5a2915c..abd28f0 100755
--- a/agents-common/src/main/resources/service-defs/ranger-servicedef-kms.json
+++ b/agents-common/src/main/resources/service-defs/ranger-servicedef-kms.json
@@ -113,6 +113,18 @@
 			"type": "password",
 			"mandatory": true,
 			"label": "Password"
+		},
+
+		{
+			"itemId": 4,
+			"name": "ranger.plugin.audit.filters",
+			"type": "string",
+			"mandatory": false,
+			"validationRegEx":"",
+			"validationMessage":"",
+			"uiHint":"",
+			"label": "Ranger Default Audit Filters",
+			"defaultValue": "[ {'accessResult': 'DENIED', 'isAudited': true}, {'users':['keyadmin'] ,'isAudited':false} ]"
 		}
 	],
 
diff --git a/agents-common/src/main/resources/service-defs/ranger-servicedef-tag.json b/agents-common/src/main/resources/service-defs/ranger-servicedef-tag.json
index 7b72f45..7cb5230 100644
--- a/agents-common/src/main/resources/service-defs/ranger-servicedef-tag.json
+++ b/agents-common/src/main/resources/service-defs/ranger-servicedef-tag.json
@@ -39,7 +39,18 @@
 
   "configs":
   [
-
+    {
+      "itemId":1,
+      "name": "ranger.plugin.audit.filters",
+      "type": "string",
+      "subType": "",
+      "mandatory": false,
+      "validationRegEx":"",
+      "validationMessage": "",
+      "uiHint":"",
+      "label": "Ranger Default Audit Filters",
+      "defaultValue": "[ {'accessResult': 'DENIED', 'isAudited': true} ]"
+    }
   ],
 
   "enums":