package-security.asciidoc 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. [role="exclude"]
  2. ==== Start {es} with security enabled
  3. When installing {es}, security features are enabled and configured by default.
  4. When you install {es}, the following security configuration
  5. occurs automatically:
  6. * Authentication and authorization are enabled, and a password is generated for
  7. the `elastic` built-in superuser.
  8. * Certificates and keys for TLS are generated for the transport and HTTP layer,
  9. and TLS is enabled and configured with these keys and certificates.
  10. The password and certificate and keys are output to your terminal. For example:
  11. [source,sh]
  12. ----
  13. -------Security autoconfiguration information-------
  14. Authentication and authorization are enabled.
  15. TLS for the transport and HTTP layers is enabled and configured.
  16. The generated password for the elastic built-in superuser is : <password>
  17. If this node should join an existing cluster, you can reconfigure this with
  18. '/usr/share/elasticsearch/bin/elasticsearch-reconfigure-node --enrollment-token <token-here>'
  19. after creating an enrollment token on your existing cluster.
  20. You can complete the following actions at any time:
  21. Reset the password of the elastic built-in superuser with
  22. '/usr/share/elasticsearch/bin/elasticsearch-reset-password -u elastic'.
  23. Generate an enrollment token for Kibana instances with
  24. '/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s kibana'.
  25. Generate an enrollment token for Elasticsearch nodes with
  26. '/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s node'.
  27. ----
  28. ===== Reconfigure a node to join an existing cluster
  29. When you install {es}, the installation process configures a
  30. single-node cluster by default. If you want a node to join an existing cluster
  31. instead, generate an enrollment token on an existing node _before_ you start
  32. the new node for the first time.
  33. . On any node in your existing cluster, generate a node enrollment token:
  34. +
  35. [source, sh]
  36. ----
  37. /usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s node
  38. ----
  39. . Copy the enrollment token, which is output to your terminal.
  40. . On your new {es} node, pass the enrollment token as a parameter to the
  41. `elasticsearch-reconfigure-node` tool:
  42. +
  43. [source, sh]
  44. ----
  45. /usr/share/elasticsearch/bin/elasticsearch-reconfigure-node --enrollment-token <enrollment-token>
  46. ----
  47. +
  48. {es} is now configured to join the existing cluster.
  49. . <<{distro}-running-systemd, Start your new node using `systemd`>>.