OpenSearch/x-pack/plugin
Tim Vernum 59da7c3cc4
Improve error message for 6.x style realm settings (#36876)
Realm settings were changed in #30241 in a non-BWC way.
If you try and start a 7.x node using a 6.x config style, then the
default error messages do not adequately describe the cause of
the problem, or the solution.

This change detects the when realms are using the 6.x style and fails
with a specific error message.

This detection is a best-effort, and will detect issues when the
realms have not been modified to use the 7.x style, but may not detect
situations where the configuration was partially changed.

e.g. We can detect this:

    xpack.security.authc:
      realms.pki1.type: pki
      realms.pki1.order: 3
      realms.pki1.ssl.certificate_authorities: [ "ca.crt" ]

But this (where the "order" has been updated, but the "ssl.*" has not)
will fall back to the standard "unknown setting" check

    xpack.security.authc:
      realms.pki.pki1.order: 3
      realms.pki1.ssl.certificate_authorities: [ "ca.crt" ]

Closes: #36026
2018-12-21 12:02:02 +11:00
..
ccr Send clear session as routable remote request (#36805) 2018-12-20 17:43:12 -07:00
core Improve error message for 6.x style realm settings (#36876) 2018-12-21 12:02:02 +11:00
deprecation Simplify deprecation issue levels (#36326) 2018-12-07 15:45:53 -07:00
graph Remove X-Pack centric graph endpoints (#36010) 2018-11-29 07:09:37 -05:00
ilm [ILM][TEST] increase assertBusy timeout (#36864) 2018-12-20 08:55:02 -08:00
logstash Rename confusing variable holding name of Logstash index template (#36840) 2018-12-19 12:09:37 -07:00
ml [ML] Reduce persistent tasks periodic reassignment interval in ... (#36845) 2018-12-20 14:53:36 +02:00
monitoring Converting randomized testing to create a separate unitTest task instead of replacing the builtin test task (#36311) 2018-12-19 08:25:20 +02:00
rollup Fix Rollup's metadata parser (#36791) 2018-12-18 16:35:39 -05:00
security Improve error message for 6.x style realm settings (#36876) 2018-12-21 12:02:02 +11:00
sql SQL: Fix bug regarding histograms usage in scripting (#36866) 2018-12-20 23:11:56 +02:00
src/test [ML] Resolve 7.0.0 TODOs in ML code (#36842) 2018-12-20 12:49:57 +00:00
upgrade Converting randomized testing to create a separate unitTest task instead of replacing the builtin test task (#36311) 2018-12-19 08:25:20 +02:00
watcher Watcher: Remove unused local variable in doExecute (#36655) 2018-12-20 13:43:10 -06:00
build.gradle Allow Integ Tests to run in a FIPS-140 JVM (#31989) 2018-07-24 12:48:14 +03:00