Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security: fix joining cluster with production license #31341

Merged
merged 2 commits into from
Jun 19, 2018

Commits on Jun 14, 2018

  1. Security: fix joining cluster with production license

    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 licenses 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 elastic#31332
    jaymode committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    1d3f935 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2018

  1. add comments to code

    jaymode committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    c670b24 View commit details
    Browse the repository at this point in the history