security.asciidoc 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. [discrete]
  2. [[breaking_80_security_changes]]
  3. ==== Security changes
  4. //NOTE: The notable-breaking-changes tagged regions are re-used in the
  5. //Installation and Upgrade Guide
  6. //tag::notable-breaking-changes[]
  7. .The realm `order` setting is now required.
  8. [%collapsible]
  9. ====
  10. *Details* +
  11. The `xpack.security.authc.realms.{type}.{name}.order` setting is now required and must be
  12. specified for each explicitly configured realm. Each value must be unique.
  13. *Impact* +
  14. The cluster will fail to start if the requirements are not met.
  15. For example, the following configuration is invalid:
  16. [source,yaml]
  17. --------------------------------------------------
  18. xpack.security.authc.realms.kerberos.kerb1:
  19. keytab.path: es.keytab
  20. remove_realm_name: false
  21. --------------------------------------------------
  22. And must be configured as:
  23. [source,yaml]
  24. --------------------------------------------------
  25. xpack.security.authc.realms.kerberos.kerb1:
  26. order: 0
  27. keytab.path: es.keytab
  28. remove_realm_name: false
  29. --------------------------------------------------
  30. ====
  31. [[audit-logs-are-rolled-over-and-archived-by-size]]
  32. .Audit logs are rolled-over and archived by size.
  33. [%collapsible]
  34. ====
  35. *Details* +
  36. In addition to the existing daily rollover, the security audit logs are
  37. now rolled-over by disk size limit as well. Moreover, the rolled-over logs
  38. are also gzip compressed.
  39. *Impact* +
  40. The names of rolled over audit logfiles (but not the name of the current log)
  41. have changed.
  42. If you've setup automated tools to consume these files, you must configure them
  43. to use the new names and to possibly account for gzip archives instead of plaintext.
  44. The Docker build of Elasticsearch is not affected since it logs on stdout where
  45. rollover is not performed.
  46. ====
  47. // end::notable-breaking-changes[]
  48. [[accept-default-password-removed]]
  49. .The `accept_default_password` setting has been removed.
  50. [%collapsible]
  51. ====
  52. *Details* +
  53. The `xpack.security.authc.accept_default_password` setting has not had any affect
  54. since the 6.0 release of {es}. It has been removed and cannot be used.
  55. *Impact* +
  56. Discontinue use of the `xpack.security.authc.accept_default_password` setting.
  57. Specifying this setting in `elasticsearch.yml` will result in an error on
  58. startup.
  59. ====
  60. [[roles-index-cache-removed]]
  61. .The `roles.index.cache.*` settings have been removed.
  62. [%collapsible]
  63. ====
  64. *Details* +
  65. The `xpack.security.authz.store.roles.index.cache.max_size` and
  66. `xpack.security.authz.store.roles.index.cache.ttl` settings have
  67. been removed. These settings have been redundant and deprecated
  68. since the 5.2 release of {es}.
  69. *Impact* +
  70. Discontinue use of the `xpack.security.authz.store.roles.index.cache.max_size`
  71. and `xpack.security.authz.store.roles.index.cache.ttl` settings. Specifying
  72. these settings in `elasticsearch.yml` will result in an error on startup.
  73. ====
  74. [[migrate-tool-removed]]
  75. .The `elasticsearch-migrate` tool has been removed.
  76. [%collapsible]
  77. ====
  78. *Details* +
  79. The `elasticsearch-migrate` tool provided a way to convert file
  80. realm users and roles into the native realm. It has been deprecated
  81. since 7.2.0. Users and roles should now be created in the native
  82. realm directly.
  83. *Impact* +
  84. Discontinue use of the `elasticsearch-migrate` tool. Attempts to use the
  85. `elasticsearch-migrate` tool will result in an error.
  86. ====
  87. [[separating-node-and-client-traffic]]
  88. .The `transport.profiles.*.xpack.security.type` setting has been removed.
  89. [%collapsible]
  90. ====
  91. *Details* +
  92. The `transport.profiles.*.xpack.security.type` setting has been removed since
  93. the Transport Client has been removed and therefore all client traffic now uses
  94. the HTTP transport. Transport profiles using this setting should be removed.
  95. *Impact* +
  96. Discontinue use of the `transport.profiles.*.xpack.security.type` setting.
  97. Specifying this setting in a transport profile in `elasticsearch.yml` will
  98. result in an error on startup.
  99. ====
  100. [discrete]
  101. [[ssl-validation-changes]]
  102. ==== SSL/TLS configuration validation
  103. .The `xpack.security.transport.ssl.enabled` setting is now required to configure `xpack.security.transport.ssl` settings.
  104. [%collapsible]
  105. ====
  106. *Details* +
  107. It is now an error to configure any SSL settings for
  108. `xpack.security.transport.ssl` without also configuring
  109. `xpack.security.transport.ssl.enabled`.
  110. *Impact* +
  111. If using other `xpack.security.transport.ssl` settings, you must explicitly
  112. specify the `xpack.security.transport.ssl.enabled` setting.
  113. If you do not want to enable SSL and are currently using other
  114. `xpack.security.transport.ssl` settings, do one of the following:
  115. * Explicitly specify `xpack.security.transport.ssl.enabled` as `false`
  116. * Discontinue use of other `xpack.security.transport.ssl` settings
  117. If you want to enable SSL, follow the instructions in
  118. {ref}/configuring-tls.html#tls-transport[Encrypting communications between nodes
  119. in a cluster]. As part of this configuration, explicitly specify
  120. `xpack.security.transport.ssl.enabled` as `true`.
  121. For example, the following configuration is invalid:
  122. [source,yaml]
  123. --------------------------------------------------
  124. xpack.security.transport.ssl.keystore.path: elastic-certificates.p12
  125. xpack.security.transport.ssl.truststore.path: elastic-certificates.p12
  126. --------------------------------------------------
  127. And must be configured as:
  128. [source,yaml]
  129. --------------------------------------------------
  130. xpack.security.transport.ssl.enabled: true <1>
  131. xpack.security.transport.ssl.keystore.path: elastic-certificates.p12
  132. xpack.security.transport.ssl.truststore.path: elastic-certificates.p12
  133. --------------------------------------------------
  134. <1> or `false`.
  135. ====
  136. .The `xpack.security.http.ssl.enabled` setting is now required to configure `xpack.security.http.ssl` settings.
  137. [%collapsible]
  138. ====
  139. *Details* +
  140. It is now an error to configure any SSL settings for
  141. `xpack.security.http.ssl` without also configuring
  142. `xpack.security.http.ssl.enabled`.
  143. *Impact* +
  144. If using other `xpack.security.http.ssl` settings, you must explicitly
  145. specify the `xpack.security.http.ssl.enabled` setting.
  146. If you do not want to enable SSL and are currently using other
  147. `xpack.security.http.ssl` settings, do one of the following:
  148. * Explicitly specify `xpack.security.http.ssl.enabled` as `false`
  149. * Discontinue use of other `xpack.security.http.ssl` settings
  150. If you want to enable SSL, follow the instructions in
  151. {ref}/configuring-tls.html#tls-http[Encrypting HTTP client communications]. As part
  152. of this configuration, explicitly specify `xpack.security.http.ssl.enabled`
  153. as `true`.
  154. For example, the following configuration is invalid:
  155. [source,yaml]
  156. --------------------------------------------------
  157. xpack.security.http.ssl.certificate: elasticsearch.crt
  158. xpack.security.http.ssl.key: elasticsearch.key
  159. xpack.security.http.ssl.certificate_authorities: [ "corporate-ca.crt" ]
  160. --------------------------------------------------
  161. And must be configured as either:
  162. [source,yaml]
  163. --------------------------------------------------
  164. xpack.security.http.ssl.enabled: true <1>
  165. xpack.security.http.ssl.certificate: elasticsearch.crt
  166. xpack.security.http.ssl.key: elasticsearch.key
  167. xpack.security.http.ssl.certificate_authorities: [ "corporate-ca.crt" ]
  168. --------------------------------------------------
  169. <1> or `false`.
  170. ====
  171. .A `xpack.security.transport.ssl` certificate and key are now required to enable SSL for the transport interface.
  172. [%collapsible]
  173. ====
  174. *Details* +
  175. It is now an error to enable SSL for the transport interface without also configuring
  176. a certificate and key through use of the `xpack.security.transport.ssl.keystore.path`
  177. setting or the `xpack.security.transport.ssl.certificate` and
  178. `xpack.security.transport.ssl.key` settings.
  179. *Impact* +
  180. If `xpack.security.transport.ssl.enabled` is set to `true`, provide a
  181. certificate and key using the `xpack.security.transport.ssl.keystore.path`
  182. setting or the `xpack.security.transport.ssl.certificate` and
  183. `xpack.security.transport.ssl.key` settings. If a certificate and key is not
  184. provided, {es} will return in an error on startup.
  185. ====
  186. .A `xpack.security.http.ssl` certificate and key are now required to enable SSL for the HTTP server.
  187. [%collapsible]
  188. ====
  189. *Details* +
  190. It is now an error to enable SSL for the HTTP (Rest) server without also configuring
  191. a certificate and key through use of the `xpack.security.http.ssl.keystore.path`
  192. setting or the `xpack.security.http.ssl.certificate` and
  193. `xpack.security.http.ssl.key` settings.
  194. *Impact* +
  195. If `xpack.security.http.ssl.enabled` is set to `true`, provide a certificate and
  196. key using the `xpack.security.http.ssl.keystore.path` setting or the
  197. `xpack.security.http.ssl.certificate` and `xpack.security.http.ssl.key`
  198. settings. If certificate and key is not provided, {es} will return in an error
  199. on startup.
  200. ====
  201. [discrete]
  202. [[builtin-users-changes]]
  203. ==== Changes to built-in users
  204. .The `kibana` user has been replaced by `kibana_system`.
  205. [%collapsible]
  206. ====
  207. *Details* +
  208. The `kibana` user was historically used to authenticate {kib} to {es}.
  209. The name of this user was confusing, and was often mistakenly used to login to {kib}.
  210. This has been renamed to `kibana_system` in order to reduce confusion, and to better
  211. align with other built-in system accounts.
  212. *Impact* +
  213. Replace any use of the `kibana` user with the `kibana_system` user. Specifying
  214. the `kibana` user in `kibana.yml` will result in an error on startup.
  215. If your `kibana.yml` used to contain:
  216. [source,yaml]
  217. --------------------------------------------------
  218. elasticsearch.username: kibana
  219. --------------------------------------------------
  220. then you should update to use the new `kibana_system` user instead:
  221. [source,yaml]
  222. --------------------------------------------------
  223. elasticsearch.username: kibana_system
  224. --------------------------------------------------
  225. IMPORTANT: The new `kibana_system` user does not preserve the previous `kibana`
  226. user password. You must explicitly set a password for the `kibana_system` user.
  227. ====
  228. [discrete]
  229. [[builtin-roles-changes]]
  230. ==== Changes to built-in roles
  231. .The `kibana_user` role has been renamed `kibana_admin`.
  232. [%collapsible]
  233. ====
  234. *Details* +
  235. Users who were previously assigned the `kibana_user` role should instead be assigned
  236. the `kibana_admin` role. This role grants the same set of privileges as `kibana_user`, but has been
  237. renamed to better reflect its intended use.
  238. *Impact* +
  239. Assign users with the `kibana_user` role to the `kibana_admin` role.
  240. Discontinue use of the `kibana_user` role.
  241. ====