From 74a11c31aeb4ca61e2f6804d23d173c2df543b53 Mon Sep 17 00:00:00 2001 From: Franco Charriol Date: Tue, 26 Jan 2021 14:53:07 -0300 Subject: [PATCH] [4.0-7.10] Removed kibana alert for security (#2806) * Removed kibana alert for security * Added validation for security_oss * Rename plugin dependency to securityOss * Added securityOss as required plugin --- kibana.json | 3 ++- public/plugin.ts | 6 ++++++ public/types.ts | 4 +++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/kibana.json b/kibana.json index d92c00851b..55b9698c26 100644 --- a/kibana.json +++ b/kibana.json @@ -14,7 +14,8 @@ "charts", "savedObjects", "kibanaReact", - "kibanaUtils" + "kibanaUtils", + "securityOss" ], "optionalPlugins": ["security", "opendistroSecurityKibana", "searchguard", "spaces"], "server": true, diff --git a/public/plugin.ts b/public/plugin.ts index f7981f142a..869b862000 100644 --- a/public/plugin.ts +++ b/public/plugin.ts @@ -64,6 +64,11 @@ export class WazuhPlugin implements Plugin { + // hide security alert + if(plugins.securityOss) { + plugins.securityOss.insecureCluster.hideAlert(true); + } + // we need to register the application service at setup, but to render it // there are some start dependencies necessary, for this reason // initializeInnerAngular + initializeServices are assigned at start and used @@ -84,6 +89,7 @@ export class WazuhPlugin implements Plugin