@@ -220,7 +220,7 @@ public void validate(final String username, final Map<Setting<?>, Object> settin
220220 }
221221
222222 // it would be ideal to validate that just one of either AUTH_PASSWORD_SETTING or
223- // SECURE_AUTH_PASSWORD_SETTING were present here, but that is not currently possible with the settings
223+ // AUTH_SECURE_PASSWORD_SETTING were present here, but that is not currently possible with the settings
224224 // validation framework.
225225 // https://github.com/elastic/elasticsearch/issues/51332
226226 }
@@ -290,10 +290,10 @@ public Iterator<Setting<?>> settings() {
290290 /**
291291 * Secure password for basic auth.
292292 */
293- public static final Setting .AffixSetting <SecureString > SECURE_AUTH_PASSWORD_SETTING =
293+ public static final Setting .AffixSetting <SecureString > AUTH_SECURE_PASSWORD_SETTING =
294294 Setting .affixKeySetting (
295295 "xpack.monitoring.exporters." ,
296- "secure_auth_password " ,
296+ "auth.secure_password " ,
297297 key -> SecureSetting .secureString (key , null ),
298298 TYPE_DEPENDENCY );
299299 /**
@@ -707,8 +707,8 @@ private static void configureTimeouts(final RestClientBuilder builder, final Con
707707 */
708708 public static List <String > loadSettings (Settings settings ) {
709709 final List <String > changedExporters = new ArrayList <>();
710- for (final String namespace : SECURE_AUTH_PASSWORD_SETTING .getNamespaces (settings )) {
711- final Setting <SecureString > s = SECURE_AUTH_PASSWORD_SETTING .getConcreteSettingForNamespace (namespace );
710+ for (final String namespace : AUTH_SECURE_PASSWORD_SETTING .getNamespaces (settings )) {
711+ final Setting <SecureString > s = AUTH_SECURE_PASSWORD_SETTING .getConcreteSettingForNamespace (namespace );
712712 final SecureString securePassword = s .get (settings );
713713 final SecureString existingPassword = SECURE_AUTH_PASSWORDS .put (namespace , securePassword );
714714 if (securePassword .equals (existingPassword ) == false ) {
@@ -905,7 +905,7 @@ public static List<Setting.AffixSetting<?>> getDynamicSettings() {
905905 }
906906
907907 public static List <Setting .AffixSetting <?>> getSecureSettings () {
908- return List .of (SECURE_AUTH_PASSWORD_SETTING );
908+ return List .of (AUTH_SECURE_PASSWORD_SETTING );
909909 }
910910
911911 public static List <Setting .AffixSetting <?>> getSettings () {
0 commit comments