2018-09-14 16:09:47 -04:00
|
|
|
[role="xpack"]
|
2018-12-04 16:18:54 -05:00
|
|
|
[testenv="gold"]
|
2017-04-06 21:29:29 -04:00
|
|
|
[[security-files]]
|
2018-12-04 16:18:54 -05:00
|
|
|
=== Security files
|
2017-04-06 21:29:29 -04:00
|
|
|
|
2018-12-04 16:18:54 -05:00
|
|
|
The {es} {security-features} use the following files:
|
2017-04-06 21:29:29 -04:00
|
|
|
|
2018-12-04 16:18:54 -05:00
|
|
|
* `ES_PATH_CONF/roles.yml` defines the roles in use on the cluster. See
|
2019-10-07 18:23:19 -04:00
|
|
|
<<defining-roles>>.
|
2017-04-06 21:29:29 -04:00
|
|
|
|
2018-06-28 11:27:04 -04:00
|
|
|
* `ES_PATH_CONF/elasticsearch-users` defines the users and their hashed passwords for
|
2019-11-18 14:51:02 -05:00
|
|
|
the `file` realm. See <<file-realm>>.
|
2017-04-06 21:29:29 -04:00
|
|
|
|
2018-06-28 11:27:04 -04:00
|
|
|
* `ES_PATH_CONF/elasticsearch-users_roles` defines the user roles assignment for the
|
2019-11-18 14:51:02 -05:00
|
|
|
the `file` realm. See <<file-realm>>.
|
2017-04-06 21:29:29 -04:00
|
|
|
|
2018-06-28 11:27:04 -04:00
|
|
|
* `ES_PATH_CONF/role_mapping.yml` defines the role assignments for a
|
2017-04-06 21:29:29 -04:00
|
|
|
Distinguished Name (DN) to a role. This allows for LDAP and Active Directory
|
2018-12-04 16:18:54 -05:00
|
|
|
groups and users and PKI users to be mapped to roles. See
|
2019-10-07 18:23:19 -04:00
|
|
|
<<mapping-roles>>.
|
2017-04-06 21:29:29 -04:00
|
|
|
|
2018-12-04 16:18:54 -05:00
|
|
|
* `ES_PATH_CONF/log4j2.properties` contains audit information. See
|
2019-10-07 18:23:19 -04:00
|
|
|
<<audit-log-output>>.
|
2017-04-06 21:29:29 -04:00
|
|
|
|
|
|
|
[[security-files-location]]
|
|
|
|
|
2018-12-04 16:18:54 -05:00
|
|
|
IMPORTANT: Any files that the {security-features} use must be stored in the {es}
|
|
|
|
configuration directory. {es} runs with restricted permissions
|
2017-04-06 21:29:29 -04:00
|
|
|
and is only permitted to read from the locations configured in the
|
|
|
|
directory layout for enhanced security.
|
|
|
|
|
|
|
|
Several of these files are in the YAML format. When you edit these files, be
|
|
|
|
aware that YAML is indentation-level sensitive and indentation errors can lead
|
|
|
|
to configuration errors. Avoid the tab character to set indentation levels, or
|
|
|
|
use an editor that automatically expands tabs to spaces.
|
|
|
|
|
|
|
|
Be careful to properly escape YAML constructs such as `:` or leading exclamation
|
|
|
|
points within quoted strings. Using the `|` or `>` characters to define block
|
|
|
|
literals instead of escaping the problematic characters can help avoid problems.
|