Skip to content

Commit

Permalink
[kbn-es] Only enable security for trial (#20803)
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Smalley <[email protected]>
  • Loading branch information
tylersmalley authored and Tyler Smalley committed Jul 26, 2018
1 parent b8c593d commit 2ffae02
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/kbn-es/src/install/archive.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 2ffae02

Please sign in to comment.