Config driven secret prompting was deprecated in 6.0.0 Use the keystore – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 7-7.15

Briefly, this error occurs when you’re trying to use config driven secret prompting, which was deprecated in Elasticsearch version 6.0.0. Instead, you should use the Elasticsearch keystore for secure settings. To resolve this issue, you can use the ‘elasticsearch-keystore’ command to create, list, and remove settings. You can also use the ‘add’ command to add a setting to the keystore, and the ‘remove’ command to remove a setting. Remember to restart Elasticsearch after making changes to the keystore.

This guide will help you check for common problems that cause the log ” Config driven secret prompting was deprecated in 6.0.0. Use the keystore ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: node.

Log Context

Log “Config driven secret prompting was deprecated in 6.0.0. Use the keystore” class name is InternalSettingsPreparer.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 for (String setting : output.keys()) {
 final String value = output.get(setting);
 if (value != null) {
 switch (value) {
 case SECRET_PROMPT_VALUE:
 throw new SettingsException("Config driven secret prompting was deprecated in 6.0.0. Use the keystore" +
 " for secure settings.");
 case TEXT_PROMPT_VALUE:
 throw new SettingsException("Config driven text prompting was deprecated in 6.0.0. Use the keystore" +
 " for secure settings.");
 }

 

How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?