Rename elastic bootstrap password setting (elastic/x-pack-elasticsearch#2009)

This is related to elastic/x-pack-elasticsearch#1991.

Original commit: elastic/x-pack-elasticsearch@b265211e4a
This commit is contained in:
Tim Brooks 2017-07-14 16:41:42 -05:00 committed by GitHub
parent 1a6e6411cf
commit 1abc40c645
2 changed files with 3 additions and 3 deletions

View File

@ -201,7 +201,7 @@ integTestCluster {
setting 'xpack.monitoring.exporters._local.type', 'local'
setting 'xpack.monitoring.exporters._local.enabled', 'false'
setting 'xpack.monitoring.collection.interval', '-1'
keystoreSetting 'es.bootstrap.passwd.elastic', 'x-pack-test-password'
keystoreSetting 'bootstrap.password', 'x-pack-test-password'
distribution = 'zip' // this is important since we use the reindex module in ML
setupCommand 'setupTestUser', 'bin/x-pack/users', 'useradd', 'x_pack_rest_user', '-p', 'x-pack-test-password', '-r', 'superuser'
@ -325,5 +325,5 @@ run {
setting 'xpack.security.enabled', 'true'
setting 'xpack.monitoring.enabled', 'true'
setting 'xpack.watcher.enabled', 'true'
keystoreSetting 'es.bootstrap.passwd.elastic', 'password'
keystoreSetting 'bootstrap.password', 'password'
}

View File

@ -56,7 +56,7 @@ public class ReservedRealm extends CachingUsernamePasswordRealm {
public static final Setting<Boolean> ACCEPT_DEFAULT_PASSWORD_SETTING = Setting.boolSetting(
Security.setting("authc.accept_default_password"), true, Setting.Property.NodeScope, Setting.Property.Filtered,
Setting.Property.Deprecated);
public static final Setting<SecureString> BOOTSTRAP_ELASTIC_PASSWORD = SecureSetting.secureString("es.bootstrap.passwd.elastic", null);
public static final Setting<SecureString> BOOTSTRAP_ELASTIC_PASSWORD = SecureSetting.secureString("bootstrap.password", null);
private final NativeUsersStore nativeUsersStore;
private final AnonymousUser anonymousUser;