From 3c889c995fba2f2a4eec0416648937ec2923b8f7 Mon Sep 17 00:00:00 2001 From: Pierre Gayvallet Date: Thu, 17 Sep 2020 19:51:56 +0200 Subject: [PATCH] remove legacy security plugin (#75648) (#77783) * remove legacy security plugin * remove legacy plugin check * adapt mocha tests * update CODEOWNERS # Conflicts: # .github/CODEOWNERS --- .github/CODEOWNERS | 0 x-pack/index.js | 3 +-- x-pack/legacy/plugins/security/index.ts | 21 --------------------- 3 files changed, 1 insertion(+), 23 deletions(-) delete mode 100644 .github/CODEOWNERS delete mode 100644 x-pack/legacy/plugins/security/index.ts diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index e69de29bb2d1d..0000000000000 diff --git a/x-pack/index.js b/x-pack/index.js index 074b8e6859dc2..745b4bd72dde8 100644 --- a/x-pack/index.js +++ b/x-pack/index.js @@ -5,9 +5,8 @@ */ import { xpackMain } from './legacy/plugins/xpack_main'; -import { security } from './legacy/plugins/security'; import { spaces } from './legacy/plugins/spaces'; module.exports = function (kibana) { - return [xpackMain(kibana), spaces(kibana), security(kibana)]; + return [xpackMain(kibana), spaces(kibana)]; }; diff --git a/x-pack/legacy/plugins/security/index.ts b/x-pack/legacy/plugins/security/index.ts deleted file mode 100644 index c3596d3745e57..0000000000000 --- a/x-pack/legacy/plugins/security/index.ts +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License; - * you may not use this file except in compliance with the Elastic License. - */ - -import { Root } from 'joi'; -import { resolve } from 'path'; - -export const security = (kibana: Record) => - new kibana.Plugin({ - id: 'security', - publicDir: resolve(__dirname, 'public'), - require: ['elasticsearch'], - configPrefix: 'xpack.security', - config: (Joi: Root) => - Joi.object({ enabled: Joi.boolean().default(true) }) - .unknown() - .default(), - init() {}, - });