OpenSearch/x-pack/plugin
Jay Modi dc57eece75
Security: fix joining cluster with production license (#31341)
The changes made to disable security for trial licenses unless security
is explicitly enabled caused issues when a 6.3 node attempts to join a
cluster that already has a production license installed. The new node
starts off with a trial license and `xpack.security.enabled` is not
set for the node, which causes the security code to skip attaching the
user to the request. The existing cluster has security enabled and the
lack of a user attached to the requests causes the request to be
rejected.

This commit changes the security code to check if the state has been
recovered yet when making the decision on whether or not to attach a
user. If the state has not yet been recovered, the code will attach
the user to the request in case security is enabled on the cluster
being joined.

Closes #31332
2018-06-19 11:58:34 -06:00
..
core Security: fix joining cluster with production license (#31341) 2018-06-19 11:58:34 -06:00
deprecation Migrate x-pack-elasticsearch source to elasticsearch 2018-04-20 15:29:54 -07:00
graph Migrate x-pack-elasticsearch source to elasticsearch 2018-04-20 15:29:54 -07:00
logstash Remove all unused imports and fix CRLF (#31207) 2018-06-11 15:12:12 +02:00
ml Use system context for cluster state update tasks (#31241) 2018-06-18 16:46:04 +02:00
monitoring Mute HttpExporterTests#testHttpExporterShutdown test 2018-06-19 15:51:59 +01:00
rollup Uncouple persistent task state and status (#31031) 2018-06-15 09:26:47 +02:00
security Security: fix joining cluster with production license (#31341) 2018-06-19 11:58:34 -06:00
sql Core: Combine Action and GenericAction (#31405) 2018-06-18 23:53:04 +02:00
src/test [ML] Put ML filter API response should contain the filter (#31362) 2018-06-15 21:15:35 +01:00
upgrade Remove all unused imports and fix CRLF (#31207) 2018-06-11 15:12:12 +02:00
watcher Revert upgrade to Netty 4.1.25.Final (#31282) 2018-06-12 19:26:18 -04:00
build.gradle SQL: Fix build on Java 10 2018-06-14 18:30:27 +03:00