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

Before you dig into reading this guide, have you tried asking OpsGPT what this log means? You’ll receive a customized analysis of your log.

Try OpsGPT now for step-by-step guidance and tailored insights into your Elasticsearch operation.

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.

For a complete solution to your to your search operation, try for free AutoOps for Elasticsearch & OpenSearch . With AutoOps and Opster’s proactive support, you don’t have to worry about your search operation – we take charge of it. Get improved performance & stability with less hardware.

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?