Class LocallyMountedSecrets

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

public class LocallyMountedSecrets extends Object implements SecureSettings
An implementation of SecureSettings which loads the secrets from externally mounted local directory. It looks for the folder called 'secrets' under the config directory. All secure settings should be supplied in a single file called 'secrets.json' which sits inside the 'secrets' directory.

If the 'secrets' directory or the 'secrets.json' file don't exist, the SecureSettings implementation is loaded with empty settings map.

Example secrets.json format: { "metadata": { "version": "1", "compatibility": "8.7.0" }, "secrets": { "secure.setting.key.one": "aaa", "secure.setting.key.two": "bbb" } }