Skip to content

bin/elasticsearch-reconfigure-node bugs and enhancements #80990

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

Closed
3 tasks
jkakavas opened this issue Nov 24, 2021 · 1 comment · Fixed by #82789
Closed
3 tasks

bin/elasticsearch-reconfigure-node bugs and enhancements #80990

jkakavas opened this issue Nov 24, 2021 · 1 comment · Fixed by #82789
Assignees
Labels
>bug :Security/Security Security issues without another label Team:Security Meta label for security team v8.0.0-beta1

Comments

@jkakavas
Copy link
Member

This is a meta issue to cover identified bugs and enhancements we want to make to elasticsearch-reconfigure-node. This CLI tool is introduced in 8.0.0 and the main use case it satisfies is to allow users to reconfigure an elasticsearch node that has been installed via a DEB or RPM package and enroll it into an existing cluster.
DEB/RPM installations by default make the assumption that the installed node is the first (or only) one in the cluster and configure TLS for transport and http layers accordingly. This CLI tool allows users to revisit the assumption after installation (before the node is ever started), so that it can enroll to an existing, secured cluster.

  • elasticsearch-reconfigure-node should be safer to use. The current behavior is to remove existing configuration and then attempt to enroll to the cluster. We should first attempt to enroll to the cluster and then remove/replace existing configuration, or backup/restore the existing configuration upon failure to enroll, so that we leave the node in a working state in every case.
  • elasticsearch-reconfigure-node lacks documentation
  • elasticsearch-reconfigure-node is expected to be run as root and wrongly sets file owners for generated keystores, so elasticsearch fails to read them on startup.
@jkakavas jkakavas added >bug :Security/Security Security issues without another label v8.0.0-beta1 labels Nov 24, 2021
@jkakavas jkakavas self-assigned this Nov 24, 2021
@elasticmachine elasticmachine added the Team:Security Meta label for security team label Nov 24, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-security (Team:Security)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Security/Security Security issues without another label Team:Security Meta label for security team v8.0.0-beta1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants