remove legacy security plugin (#75648) (#77783)

* remove legacy security plugin

* remove legacy plugin check

* adapt mocha tests

* update CODEOWNERS
# Conflicts:
#	.github/CODEOWNERS
This commit is contained in:
Pierre Gayvallet 2020-09-17 19:51:56 +02:00 committed by GitHub
parent 11458060da
commit 3c889c995f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 23 deletions

0
.github/CODEOWNERS vendored
View file

View file

@ -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)];
};

View file

@ -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<string, any>) =>
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() {},
});