Remove use of get raw in token/API key settings (#47260)
These settings were using get raw to fallback to whether or not SSL is enabled. Yet, we have a formal mechanism for falling back to a setting. This commit cuts over to that formal mechanism.
This commit is contained in:
parent
a1d3711b52
commit
2cba323b4e
|
@ -114,12 +114,12 @@ public class XPackSettings {
|
|||
true, Setting.Property.NodeScope);
|
||||
|
||||
/** Setting for enabling or disabling the token service. Defaults to the value of https being enabled */
|
||||
public static final Setting<Boolean> TOKEN_SERVICE_ENABLED_SETTING = Setting.boolSetting("xpack.security.authc.token.enabled",
|
||||
XPackSettings.HTTP_SSL_ENABLED::getRaw, Setting.Property.NodeScope);
|
||||
public static final Setting<Boolean> TOKEN_SERVICE_ENABLED_SETTING =
|
||||
Setting.boolSetting("xpack.security.authc.token.enabled", XPackSettings.HTTP_SSL_ENABLED, Setting.Property.NodeScope);
|
||||
|
||||
/** Setting for enabling or disabling the api key service. Defaults to the value of https being enabled */
|
||||
public static final Setting<Boolean> API_KEY_SERVICE_ENABLED_SETTING = Setting.boolSetting("xpack.security.authc.api_key.enabled",
|
||||
XPackSettings.HTTP_SSL_ENABLED::getRaw, Setting.Property.NodeScope);
|
||||
public static final Setting<Boolean> API_KEY_SERVICE_ENABLED_SETTING =
|
||||
Setting.boolSetting("xpack.security.authc.api_key.enabled", XPackSettings.HTTP_SSL_ENABLED, Setting.Property.NodeScope);
|
||||
|
||||
/** Setting for enabling or disabling FIPS mode. Defaults to false */
|
||||
public static final Setting<Boolean> FIPS_MODE_ENABLED =
|
||||
|
|
Loading…
Reference in New Issue