mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[kbn-es] Only enable security for trial (#20803)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
This commit is contained in:
parent
b8c593dccf
commit
2ffae02bc2
1 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue