Class SecureClusterStateSettings

java.lang.Object
org.elasticsearch.common.settings.SecureClusterStateSettings
All Implemented Interfaces:
Closeable, AutoCloseable, Writeable, SecureSettings

public class SecureClusterStateSettings extends Object implements SecureSettings
Implementation of SecureSettings that represents secrets in cluster state. Secrets are stored as byte arrays along with their SHA-256 digests. Provides functionality to read and serialize secure settings to broadcast them as part of cluster state. Does not provide any encryption.

Cluster state secrets are initialized from file settings (typically using the "cluster_secrets" namespace), and might look as follows under the respective namespace:

 {
     "string_secrets": {
         "secure.setting.key.one": "aaa",
         "secure.setting.key.two": "bbb"
     }
     "file_secrets": {
         "secure.setting.key.three": "Y2Nj"
     }
 }