file-realm.asciidoc 1.3 KB

1234567891011121314151617181920212223242526272829
  1. [role="xpack"]
  2. [[file-realm]]
  3. === File-based user authentication
  4. You can manage and authenticate users with the built-in `file` realm.
  5. With the `file` realm, users are defined in local files on each node in the cluster.
  6. IMPORTANT: As the administrator of the cluster, it is your responsibility to
  7. ensure the same users are defined on every node in the cluster. The {stack}
  8. {security-features} do not deliver any mechanism to guarantee this.
  9. The `file` realm is primarily supported to serve as a fallback/recovery realm. It
  10. is mostly useful in situations where all users locked themselves out of the system
  11. (no one remembers their username/password). In this type of scenarios, the `file`
  12. realm is your only way out - you can define a new `admin` user in the `file` realm
  13. and use it to log in and reset the credentials of all other users.
  14. IMPORTANT: When you configure realms in `elasticsearch.yml`, only the realms you
  15. specify are used for authentication. To use the `file` realm as a fallback, you
  16. must include it in the realm chain.
  17. To define users, the {security-features} provide the
  18. <<users-command,users>> command-line tool. This tool enables you to add
  19. and remove users, assign user roles, and manage user passwords.
  20. [[file-realm-configuration]]
  21. ==== Configuring a file realm
  22. include::configuring-file-realm.asciidoc[]