files.asciidoc 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. [[security-files]]
  2. === Security Files
  3. {security} uses the following files:
  4. * `ES_PATH_CONF/roles.yml` defines the roles in use on the cluster
  5. (read more <<roles-management-file, here>>).
  6. * `ES_PATH_CONF/elasticsearch-users` defines the users and their hashed passwords for
  7. the <<file-realm,`file` realm>>.
  8. * `ES_PATH_CONF/elasticsearch-users_roles` defines the user roles assignment for the
  9. the <<file-realm, `file` realm>>.
  10. * `ES_PATH_CONF/role_mapping.yml` defines the role assignments for a
  11. Distinguished Name (DN) to a role. This allows for LDAP and Active Directory
  12. groups and users and PKI users to be mapped to roles (read more
  13. <<mapping-roles, here>>).
  14. * `ES_PATH_CONF/log4j2.properties` contains audit information (read more
  15. <<logging-file, here>>).
  16. [[security-files-location]]
  17. IMPORTANT: Any files that {security} uses must be stored in the Elasticsearch
  18. configuration directory. Elasticsearch runs with restricted permissions
  19. and is only permitted to read from the locations configured in the
  20. directory layout for enhanced security.
  21. Several of these files are in the YAML format. When you edit these files, be
  22. aware that YAML is indentation-level sensitive and indentation errors can lead
  23. to configuration errors. Avoid the tab character to set indentation levels, or
  24. use an editor that automatically expands tabs to spaces.
  25. Be careful to properly escape YAML constructs such as `:` or leading exclamation
  26. points within quoted strings. Using the `|` or `>` characters to define block
  27. literals instead of escaping the problematic characters can help avoid problems.