OpenSearch/x-pack
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
..
dev-tools
docs [DOCS] Moves the info API to docs (#31121) 2018-06-19 10:33:57 -07:00
license-tools Remove all unused imports and fix CRLF (#31207) 2018-06-11 15:12:12 +02:00
plugin Security: fix joining cluster with production license (#31341) 2018-06-19 11:58:34 -06:00
qa Packaging: Remove windows bin files from the tar distribution (#30596) 2018-06-18 19:02:51 +02:00
test Remove all unused imports and fix CRLF (#31207) 2018-06-11 15:12:12 +02:00
transport-client
NOTICE.txt
README.md Reorganize license files 2018-04-20 15:33:59 -07:00
build.gradle Build: Fix the license in the pom zip and tar (#31336) 2018-06-14 16:22:00 -04:00

README.md

Elastic License Functionality

This directory tree contains files subject to the Elastic License. The files subject to the Elastic License are grouped in this directory to clearly separate them from files licensed under the Apache License 2.0.