From 31c74032c4786c8bc9e0ce805e99c8041319c09f Mon Sep 17 00:00:00 2001 From: Yaliang Wu Date: Wed, 27 Jan 2021 15:39:44 -0800 Subject: [PATCH 1/3] add AD search task permission to the list --- public/apps/configuration/constants.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/public/apps/configuration/constants.tsx b/public/apps/configuration/constants.tsx index 34827ea2f..194046949 100644 --- a/public/apps/configuration/constants.tsx +++ b/public/apps/configuration/constants.tsx @@ -43,6 +43,7 @@ export const CLUSTER_PERMISSIONS: string[] = [ 'cluster:admin/opendistro/ad/detector/write', 'cluster:admin/opendistro/ad/detectors/get', 'cluster:admin/opendistro/ad/result/search', + 'cluster:admin/opendistro/ad/tasks/search', 'cluster:admin/opendistro/alerting/alerts/ack', 'cluster:admin/opendistro/alerting/alerts/get', 'cluster:admin/opendistro/alerting/destination/delete', From 34f49eb3e921b7cef33fd8ed8435ddea72b0689a Mon Sep 17 00:00:00 2001 From: Yaliang Wu Date: Wed, 27 Jan 2021 16:04:00 -0800 Subject: [PATCH 2/3] add AD preview and detector info permission --- public/apps/configuration/constants.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/apps/configuration/constants.tsx b/public/apps/configuration/constants.tsx index 194046949..1211fd02e 100644 --- a/public/apps/configuration/constants.tsx +++ b/public/apps/configuration/constants.tsx @@ -44,6 +44,8 @@ export const CLUSTER_PERMISSIONS: string[] = [ 'cluster:admin/opendistro/ad/detectors/get', 'cluster:admin/opendistro/ad/result/search', 'cluster:admin/opendistro/ad/tasks/search', + 'cluster:admin/opendistro/ad/detector/preview', + 'cluster:admin/opendistro/ad/detector/info', 'cluster:admin/opendistro/alerting/alerts/ack', 'cluster:admin/opendistro/alerting/alerts/get', 'cluster:admin/opendistro/alerting/destination/delete', From eae7f3009bed7c3f9f354185c06ea692f58c3407 Mon Sep 17 00:00:00 2001 From: Yaliang Wu Date: Wed, 27 Jan 2021 16:11:12 -0800 Subject: [PATCH 3/3] sort lexicographically --- public/apps/configuration/constants.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/apps/configuration/constants.tsx b/public/apps/configuration/constants.tsx index 1211fd02e..046e6aebf 100644 --- a/public/apps/configuration/constants.tsx +++ b/public/apps/configuration/constants.tsx @@ -36,7 +36,9 @@ export const CLUSTER_PERMISSIONS: string[] = [ 'cluster:admin/ingest/pipeline/simulate', 'cluster:admin/ingest/processor/grok/get', 'cluster:admin/opendistro/ad/detector/delete', + 'cluster:admin/opendistro/ad/detector/info', 'cluster:admin/opendistro/ad/detector/jobmanagement', + 'cluster:admin/opendistro/ad/detector/preview', 'cluster:admin/opendistro/ad/detector/run', 'cluster:admin/opendistro/ad/detector/search', 'cluster:admin/opendistro/ad/detector/stats', @@ -44,8 +46,6 @@ export const CLUSTER_PERMISSIONS: string[] = [ 'cluster:admin/opendistro/ad/detectors/get', 'cluster:admin/opendistro/ad/result/search', 'cluster:admin/opendistro/ad/tasks/search', - 'cluster:admin/opendistro/ad/detector/preview', - 'cluster:admin/opendistro/ad/detector/info', 'cluster:admin/opendistro/alerting/alerts/ack', 'cluster:admin/opendistro/alerting/alerts/get', 'cluster:admin/opendistro/alerting/destination/delete',