-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:Security/AuthenticationLogging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc)Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc)>enhancement
Description
If a 7.0 node is started with a 6.x style realm config (see #30241)
then the error message is something like this:
Caused by: org.elasticsearch.common.settings.SettingsException: Failed to get setting group for [] setting prefix and setting [bind_dn] because of a missing '.'
at org.elasticsearch.common.settings.Settings.getGroupsInternal(Settings.java:494) ~[elasticsearch-7.0.0-SNAPSHOT.jar:7.0.0-SNAPSHOT]
at org.elasticsearch.common.settings.Settings.getAsGroups(Settings.java:510) ~[elasticsearch-7.0.0-SNAPSHOT.jar:7.0.0-SNAPSHOT]
at org.elasticsearch.common.settings.Settings.getAsGroups(Settings.java:506) ~[elasticsearch-7.0.0-SNAPSHOT.jar:7.0.0-SNAPSHOT]
at org.elasticsearch.xpack.core.ssl.SSLService.lambda$getRealmsSSLSettings$4(SSLService.java:623) ~[?:?]
at java.util.HashMap.forEach(HashMap.java:1336) ~[?:?]
We should fail with something more actionable.
Metadata
Metadata
Assignees
Labels
:Security/AuthenticationLogging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc)Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc)>enhancement