From 2ffae02bc283011d0809285efcf0714dbf229322 Mon Sep 17 00:00:00 2001 From: Tyler Smalley Date: Thu, 26 Jul 2018 14:41:06 -0700 Subject: [PATCH] [kbn-es] Only enable security for trial (#20803) Signed-off-by: Tyler Smalley --- packages/kbn-es/src/install/archive.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/kbn-es/src/install/archive.js b/packages/kbn-es/src/install/archive.js index 8c869118f0d65..bc2fbe995be88 100644 --- a/packages/kbn-es/src/install/archive.js +++ b/packages/kbn-es/src/install/archive.js @@ -52,10 +52,14 @@ exports.installArchive = async function installArchive(archive, options = {}) { await decompress(archive, installPath); log.info('extracted to %s', chalk.bold(installPath)); + if (license === 'trial') { + // starting in 6.3, security is disabled by default. Since we bootstrap + // the keystore, we can enable security ourselves. + await appendToConfig(installPath, 'xpack.security.enabled', 'true'); + } + if (license !== 'oss') { await appendToConfig(installPath, 'xpack.license.self_generated.type', license); - - await appendToConfig(installPath, 'xpack.security.enabled', 'true'); await configureKeystore(installPath, password, log); }