[kbn-es] Only enable security for trial (#20803)

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
This commit is contained in:
Tyler Smalley 2018-07-26 14:41:06 -07:00 committed by Tyler Smalley
parent b8c593dccf
commit 2ffae02bc2

View file

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