security-settings.asciidoc 66 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631
  1. [role="xpack"]
  2. [[security-settings]]
  3. === Security settings in {es}
  4. ++++
  5. <titleabbrev>Security settings</titleabbrev>
  6. ++++
  7. By default, the {es} {security-features} are disabled when you have a basic or
  8. trial license. To enable {security-features}, use the `xpack.security.enabled`
  9. setting.
  10. You configure `xpack.security` settings to
  11. <<anonymous-access-settings, enable anonymous access>>
  12. and perform message authentication,
  13. <<field-document-security-settings, set up document and field level security>>,
  14. <<realm-settings, configure realms>>,
  15. <<ssl-tls-settings, encrypt communications with SSL>>, and
  16. <<auditing-settings, audit security events>>.
  17. All of these settings can be added to the `elasticsearch.yml` configuration file,
  18. with the exception of the secure settings, which you add to the {es} keystore.
  19. For more information about creating and updating the {es} keystore, see
  20. <<secure-settings>>.
  21. [float]
  22. [[general-security-settings]]
  23. ==== General security settings
  24. `xpack.security.enabled`::
  25. Set to `true` to enable {es} {security-features} on the node. +
  26. +
  27. --
  28. If set to `false`, which is the default value for basic and trial licenses,
  29. {security-features} are disabled. It also affects all {kib} instances that
  30. connect to this {es} instance; you do not need to disable {security-features} in
  31. those `kibana.yml` files. For more information about disabling {security-features}
  32. in specific {kib} instances, see
  33. {kibana-ref}/security-settings-kb.html[{kib} security settings].
  34. TIP: If you have gold or higher licenses, the default value is `true`; we
  35. recommend that you explicitly add this setting to avoid confusion.
  36. --
  37. `xpack.security.hide_settings`::
  38. A comma-separated list of settings that are omitted from the results of the
  39. <<cluster-nodes-info,cluster nodes info API>>. You can use wildcards to include
  40. multiple settings in the list. For example, the following value hides all the
  41. settings for the ad1 active_directory realm:
  42. `xpack.security.authc.realms.active_directory.ad1.*`.
  43. The API already omits all `ssl` settings, `bind_dn`, and `bind_password` due to
  44. the sensitive nature of the information.
  45. `xpack.security.fips_mode.enabled`::
  46. Enables fips mode of operation. Set this to `true` if you run this {es} instance in a FIPS 140-2 enabled JVM. For more information, see <<fips-140-compliance>>. Defaults to `false`.
  47. [float]
  48. [[password-security-settings]]
  49. ==== Default password security settings
  50. `xpack.security.authc.accept_default_password`::
  51. In `elasticsearch.yml`, set this to `false` to disable support for the default "changeme" password.
  52. [float]
  53. [[password-hashing-settings]]
  54. ==== Password hashing settings
  55. `xpack.security.authc.password_hashing.algorithm`::
  56. Specifies the hashing algorithm that is used for secure user credential storage.
  57. See <<password-hashing-algorithms>>. Defaults to `bcrypt`.
  58. [float]
  59. [[anonymous-access-settings]]
  60. ==== Anonymous access settings
  61. You can configure the following anonymous access settings in
  62. `elasticsearch.yml`. For more information, see {stack-ov}/anonymous-access.html[
  63. Enabling anonymous access].
  64. `xpack.security.authc.anonymous.username`::
  65. The username (principal) of the anonymous user. Defaults to `_es_anonymous_user`.
  66. `xpack.security.authc.anonymous.roles`::
  67. The roles to associate with the anonymous user. Required.
  68. `xpack.security.authc.anonymous.authz_exception`::
  69. When `true`, an HTTP 403 response is returned if the anonymous user
  70. does not have the appropriate permissions for the requested action. The
  71. user is not prompted to provide credentials to access the requested
  72. resource. When set to `false`, an HTTP 401 response is returned and the user
  73. can provide credentials with the appropriate permissions to gain
  74. access. Defaults to `true`.
  75. [float]
  76. [[security-automata-settings]]
  77. ==== Automata Settings
  78. In places where the {security-features} accept wildcard patterns (e.g. index
  79. patterns in roles, group matches in the role mapping API), each pattern is
  80. compiled into an Automaton. The follow settings are available to control this
  81. behaviour.
  82. `xpack.security.automata.max_determinized_states`::
  83. The upper limit on how many automaton states may be created by a single pattern.
  84. This protects against too-difficult (e.g. exponentially hard) patterns.
  85. Defaults to `100,000`.
  86. `xpack.security.automata.cache.enabled`::
  87. Whether to cache the compiled automata. Compiling automata can be CPU intensive
  88. and may slowdown some operations. The cache reduces the frequency with which
  89. automata need to be compiled.
  90. Defaults to `true`.
  91. `xpack.security.automata.cache.size`::
  92. The maximum number of items to retain in the automata cache.
  93. Defaults to `10,000`.
  94. `xpack.security.automata.cache.ttl`::
  95. The length of time to retain in an item in the automata cache (based on most
  96. recent usage).
  97. Defaults to `48h` (48 hours).
  98. [float]
  99. [[field-document-security-settings]]
  100. ==== Document and field level security settings
  101. You can set the following document and field level security
  102. settings in `elasticsearch.yml`. For more information, see
  103. {stack-ov}/field-and-document-access-control.html[Setting up document and field
  104. level security].
  105. `xpack.security.dls_fls.enabled`::
  106. Set to `false` to prevent document and field level security
  107. from being configured. Defaults to `true`.
  108. `xpack.security.dls.bitset.cache.ttl`::
  109. The time-to-live for cached `BitSet` entries for document level security.
  110. Document level security queries may depend on Lucene BitSet objects, and these are
  111. automatically cached to improve performance. Defaults to expire entries that are
  112. unused for `168h` (7 days).
  113. `xpack.security.dls.bitset.cache.size`::
  114. The maximum memory usage of cached `BitSet` entries for document level security.
  115. Document level security queries may depend on Lucene BitSet objects, and these are
  116. automatically cached to improve performance. Defaults to `50mb`, after which
  117. least-recently-used entries will be evicted.
  118. [float]
  119. [[token-service-settings]]
  120. ==== Token service settings
  121. You can set the following token service settings in
  122. `elasticsearch.yml`.
  123. `xpack.security.authc.token.enabled`::
  124. Set to `false` to disable the built-in token service. Defaults to `true` unless
  125. `xpack.security.http.ssl.enabled` is `false`. This prevents sniffing the token
  126. from a connection over plain http.
  127. `xpack.security.authc.token.timeout`::
  128. The length of time that a token is valid for. By default this value is `20m` or
  129. 20 minutes. The maximum value is 1 hour.
  130. [float]
  131. [[api-key-service-settings]]
  132. ==== API key service settings
  133. You can set the following API key service settings in
  134. `elasticsearch.yml`.
  135. `xpack.security.authc.api_key.enabled`::
  136. Set to `false` to disable the built-in API key service. Defaults to `true` unless
  137. `xpack.security.http.ssl.enabled` is `false`. This prevents sniffing the API key
  138. from a connection over plain http.
  139. `xpack.security.authc.api_key.hashing.algorithm`::
  140. Specifies the hashing algorithm that is used for securing API key credentials.
  141. See <<password-hashing-algorithms>>. Defaults to `pbkdf2`.
  142. `xpack.security.authc.api_key.cache.ttl`::
  143. The time-to-live for cached API key entries. A API key id and a hash of its
  144. API key are cached for this period of time. Specify the time period using
  145. the standard {es} <<time-units,time units>>. Defaults to `1d`.
  146. `xpack.security.authc.api_key.cache.max_keys`::
  147. The maximum number of API key entries that can live in the
  148. cache at any given time. Defaults to 10,000.
  149. `xpack.security.authc.api_key.cache.hash_algo`:: (Expert Setting)
  150. The hashing algorithm that is used for the
  151. in-memory cached API key credentials. For possible values, see <<cache-hash-algo>>.
  152. Defaults to `ssha256`.
  153. [float]
  154. [[realm-settings]]
  155. ==== Realm settings
  156. You configure realm settings in the `xpack.security.authc.realms`
  157. namespace in `elasticsearch.yml`. For example:
  158. [source,yaml]
  159. ----------------------------------------
  160. xpack.security.authc.realms:
  161. native.realm1:
  162. order: 0
  163. ...
  164. ldap.realm2:
  165. order: 1
  166. ...
  167. active_directory.realm3:
  168. order: 2
  169. ...
  170. ...
  171. ----------------------------------------
  172. The valid settings vary depending on the realm type. For more
  173. information, see {stack-ov}/setting-up-authentication.html[Setting up authentication].
  174. [float]
  175. [[ref-realm-settings]]
  176. ===== Settings valid for all realms
  177. `type`::
  178. The type of the realm: `native, `ldap`, `active_directory`, `pki`, or `file`. Required.
  179. `order`::
  180. The priority of the realm within the realm chain. Realms with a lower order are
  181. consulted first. Although not required, use of this setting is strongly
  182. recommended when you configure multiple realms. Defaults to `Integer.MAX_VALUE`.
  183. `enabled`::
  184. Indicates whether a realm is enabled. You can use this setting to disable a
  185. realm without removing its configuration information. Defaults to `true`.
  186. [[ref-native-settings]]
  187. [float]
  188. ===== Native realm settings
  189. For a native realm, the `type` must be set to `native`. In addition to the
  190. <<ref-realm-settings,settings that are valid for all realms>>, you can specify
  191. the following optional settings:
  192. `cache.ttl`:: The time-to-live for cached user entries. A user and a hash of its
  193. credentials are cached for this period of time. Specify the time period using
  194. the standard {es} <<time-units,time units>>. Defaults to `20m`.
  195. `cache.max_users`:: The maximum number of user entries that can live in the
  196. cache at any given time. Defaults to 100,000.
  197. `cache.hash_algo`:: (Expert Setting) The hashing algorithm that is used for the
  198. in-memory cached user credentials. For possible values, see <<cache-hash-algo>>.
  199. Defaults to `ssha256`.
  200. `authentication.enabled`:: If set to `false`, disables authentication support in
  201. this realm, so that it only supports user lookups.
  202. (See the {stack-ov}/run-as-privilege.html[run as] and
  203. {stack-ov}/realm-chains.html#authorization_realms[authorization realms] features).
  204. Defaults to `true`.
  205. [[ref-users-settings]]
  206. [float]
  207. ===== File realm settings
  208. The `type` setting must be set to `file`. In addition to the
  209. <<ref-realm-settings,settings that are valid for all realms>>, you can specify
  210. the following settings:
  211. `cache.ttl`::
  212. The time-to-live for cached user entries. A user and a hash of its credentials
  213. are cached for this configured period of time. Defaults to `20m`. Specify values
  214. using the standard {es} {ref}/common-options.html#time-units[time units].
  215. Defaults to `20m`.
  216. `cache.max_users`::
  217. The maximum number of user entries that can live in the cache at a given time.
  218. Defaults to 100,000.
  219. `cache.hash_algo`::
  220. (Expert Setting) The hashing algorithm that is used for the in-memory cached
  221. user credentials. See <<cache-hash-algo>>. Defaults to `ssha256`.
  222. `authentication.enabled`:: If set to `false`, disables authentication support in
  223. this realm, so that it only supports user lookups.
  224. (See the {stack-ov}/run-as-privilege.html[run as] and
  225. {stack-ov}/realm-chains.html#authorization_realms[authorization realms] features).
  226. Defaults to `true`.
  227. [[ref-ldap-settings]]
  228. [float]
  229. ===== LDAP realm settings
  230. The `type` setting must be set to `ldap`. In addition to the
  231. <<ref-realm-settings>>, you can specify the following settings:
  232. `url`::
  233. One or more LDAP URLs in the `ldap[s]://<server>:<port>` format. Required.
  234. +
  235. To provide multiple URLs, use a YAML array (`["ldap://server1:636", "ldap://server2:636"]`)
  236. or comma-separated string (`"ldap://server1:636, ldap://server2:636"`).
  237. +
  238. While both are supported, you can't mix the `ldap` and `ldaps` protocols.
  239. `load_balance.type`::
  240. The behavior to use when there are multiple LDAP URLs defined. For supported
  241. values see <<load-balancing,load balancing and failover types>>.
  242. Defaults to `failover`.
  243. `load_balance.cache_ttl`::
  244. When using `dns_failover` or `dns_round_robin` as the load balancing type,
  245. this setting controls the amount of time to cache DNS lookups. Defaults
  246. to `1h`.
  247. `bind_dn`::
  248. The DN of the user that is used to bind to the LDAP and perform searches.
  249. Only applicable in user search mode.
  250. If not specified, an anonymous bind is attempted.
  251. Defaults to Empty. Due to its potential security impact, `bind_dn` is not
  252. exposed via the <<cluster-nodes-info,nodes info API>>.
  253. `bind_password`::
  254. deprecated[6.3] Use `secure_bind_password` instead. The password for the user
  255. that is used to bind to the LDAP directory.
  256. Defaults to Empty. Due to its potential security impact, `bind_password` is not
  257. exposed via the <<cluster-nodes-info,nodes info API>>.
  258. `secure_bind_password` (<<secure-settings,Secure>>)::
  259. The password for the user that is used to bind to the LDAP directory.
  260. Defaults to Empty.
  261. `user_dn_templates`::
  262. The DN template that replaces the user name with the string `{0}`.
  263. This setting is multivalued; you can specify multiple user contexts.
  264. Required to operate in user template mode. If `user_search.base_dn` is specified,
  265. this setting is not valid. For more information on
  266. the different modes, see {stack-ov}/ldap-realm.html[LDAP realms].
  267. `authorization_realms`::
  268. The names of the realms that should be consulted for delegated authorization.
  269. If this setting is used, then the LDAP realm does not perform role mapping and
  270. instead loads the user from the listed realms. The referenced realms are
  271. consulted in the order that they are defined in this list.
  272. See {stack-ov}/realm-chains.html#authorization_realms[Delegating authorization to another realm]
  273. +
  274. --
  275. NOTE: If any settings starting with `user_search` are specified, the
  276. `user_dn_templates` settings are ignored.
  277. --
  278. `user_group_attribute`::
  279. Specifies the attribute to examine on the user for group membership.
  280. If any `group_search` settings are specified, this setting is ignored. Defaults
  281. to `memberOf`.
  282. `user_search.base_dn`::
  283. Specifies a container DN to search for users. Required
  284. to operated in user search mode. If `user_dn_templates` is specified, this
  285. setting is not valid. For more information on
  286. the different modes, see {stack-ov}/ldap-realm.html[LDAP realms].
  287. `user_search.scope`::
  288. The scope of the user search. Valid values are `sub_tree`, `one_level` or
  289. `base`. `one_level` only searches objects directly contained within the
  290. `base_dn`. `sub_tree` searches all objects contained under `base_dn`.
  291. `base` specifies that the `base_dn` is the user object, and that it is
  292. the only user considered. Defaults to `sub_tree`.
  293. `user_search.filter`::
  294. Specifies the filter used to search the directory in attempts to match
  295. an entry with the username provided by the user. Defaults to `(uid={0})`.
  296. `{0}` is substituted with the username provided when searching.
  297. `user_search.attribute`::
  298. deprecated[5.6] Use `user_search.filter` instead.
  299. The attribute to match with the username sent with the request. Defaults to `uid`.
  300. `user_search.pool.enabled`::
  301. Enables or disables connection pooling for user search. If set to `false`, a new
  302. connection is created for every search. The
  303. default is `true` when `bind_dn` is set.
  304. `user_search.pool.size`::
  305. The maximum number of connections to the LDAP server to allow in the
  306. connection pool. Defaults to `20`.
  307. `user_search.pool.initial_size`::
  308. The initial number of connections to create to the LDAP server on startup.
  309. Defaults to `0`. If the LDAP server is down, values greater than `0` could cause
  310. startup failures.
  311. `user_search.pool.health_check.enabled`::
  312. Enables or disables a health check on LDAP connections in the connection
  313. pool. Connections are checked in the background at the specified interval.
  314. Defaults to `true`.
  315. `user_search.pool.health_check.dn`::
  316. The distinguished name that is retrieved as part of the health check.
  317. Defaults to the value of `bind_dn` if present; if
  318. not, falls back to `user_search.base_dn`.
  319. `user_search.pool.health_check.interval`::
  320. The interval to perform background checks of connections in the pool.
  321. Defaults to `60s`.
  322. `group_search.base_dn`::
  323. The container DN to search for groups in which the user has membership. When
  324. this element is absent, {es} searches for the attribute specified by
  325. `user_group_attribute` set on the user in order to determine group membership.
  326. `group_search.scope`::
  327. Specifies whether the group search should be `sub_tree`, `one_level` or
  328. `base`. `one_level` only searches objects directly contained within the
  329. `base_dn`. `sub_tree` searches all objects contained under `base_dn`.
  330. `base` specifies that the `base_dn` is a group object, and that it is the
  331. only group considered. Defaults to `sub_tree`.
  332. `group_search.filter`::
  333. Specifies a filter to use to look up a group.
  334. When not set, the realm searches for `group`, `groupOfNames`, `groupOfUniqueNames`,
  335. or `posixGroup` with the attributes `member`, `memberOf`, or `memberUid`. Any
  336. instance of `{0}` in the filter is replaced by the user attribute defined in
  337. `group_search.user_attribute`.
  338. `group_search.user_attribute`::
  339. Specifies the user attribute that is fetched and provided as a parameter to
  340. the filter. If not set, the user DN is passed into the filter. Defaults to Empty.
  341. `unmapped_groups_as_roles`::
  342. If set to `true`, the names of any unmapped LDAP groups are used as role names
  343. and assigned to the user. A group is considered to be _unmapped_ if it is not
  344. referenced in a
  345. {stack-ov}/mapping-roles.html#mapping-roles-file[role-mapping file]. API-based
  346. role mappings are not considered. Defaults to `false`.
  347. `files.role_mapping`::
  348. The <<security-files,location>> for the {stack-ov}/mapping-roles.html#mapping-roles[
  349. YAML role mapping configuration file]. Defaults to
  350. `ES_PATH_CONF/role_mapping.yml`.
  351. `follow_referrals`::
  352. Specifies whether {es} should follow referrals returned
  353. by the LDAP server. Referrals are URLs returned by the server that are to be
  354. used to continue the LDAP operation (for example, search). Defaults to `true`.
  355. `metadata`::
  356. A list of additional LDAP attributes that should be loaded from the
  357. LDAP server and stored in the authenticated user's metadata field.
  358. `timeout.tcp_connect`::
  359. The TCP connect timeout period for establishing an LDAP connection.
  360. An `s` at the end indicates seconds, or `ms` indicates milliseconds.
  361. Defaults to `5s` (5 seconds ).
  362. `timeout.tcp_read`::
  363. The TCP read timeout period after establishing an LDAP connection.
  364. An `s` at the end indicates seconds, or `ms` indicates milliseconds.
  365. Defaults to `5s` (5 seconds ).
  366. `timeout.ldap_search`::
  367. The LDAP Server enforced timeout period for an LDAP search.
  368. An `s` at the end indicates seconds, or `ms` indicates milliseconds.
  369. Defaults to `5s` (5 seconds ).
  370. `ssl.key`::
  371. Path to a PEM encoded file containing the private key, which is used if the
  372. LDAP server requires client authentication. `ssl.key` and `ssl.keystore.path`
  373. cannot be used at the same time.
  374. `ssl.key_passphrase`::
  375. The passphrase that is used to decrypt the private key. This value is
  376. optional as the key may not be encrypted.
  377. `ssl.secure_key_passphrase` (<<secure-settings,Secure>>)::
  378. The passphrase that is used to decrypt the private key.
  379. `ssl.certificate`::
  380. Path to a PEM encoded file containing the certificate (or certificate chain)
  381. that will be presented to clients when they connect.
  382. `ssl.certificate_authorities`::
  383. List of paths to PEM encoded certificate files that should be trusted.
  384. `ssl.certificate_authorities` and `ssl.truststore.path` cannot be used at the
  385. same time.
  386. `ssl.keystore.path`::
  387. The path to the Java Keystore file that contains a private key and certificate.
  388. `ssl.key` and `ssl.keystore.path` may not be used at the same time.
  389. `ssl.keystore.type`::
  390. The format of the keystore file. Should be `jks` to use the Java
  391. Keystore format, `PKCS12` to use PKCS#12 files, or `PKCS11` to use a PKCS#11 token.
  392. The default is `jks`.
  393. `ssl.keystore.password`::
  394. The password to the keystore.
  395. `ssl.keystore.secure_password` (<<secure-settings,Secure>>)::
  396. The password to the keystore.
  397. `ssl.keystore.key_password`::
  398. The password for the key in the keystore. Defaults to the keystore password.
  399. `ssl.keystore.secure_key_password`::
  400. The password for the key in the keystore. Defaults to the keystore password.
  401. `ssl.truststore.path`::
  402. The path to the Java Keystore file that contains the certificates to trust.
  403. `ssl.certificate_authorities` and `ssl.truststore.path` cannot be used at the same time.
  404. `ssl.truststore.password`::
  405. The password to the truststore.
  406. `ssl.truststore.secure_password` (<<secure-settings,Secure>>)::
  407. The password to the truststore.
  408. `ssl.truststore.type`::
  409. The format of the keystore file. Should be `jks` to use the Java
  410. Keystore format, `PKCS12` to use PKCS#12 files, or `PKCS11` to use a PKCS#11 token.
  411. The default is `jks`.
  412. `ssl.verification_mode`::
  413. Indicates the type of verification when using `ldaps` to protect against man
  414. in the middle attacks and certificate forgery. Values are `none`, `certificate`,
  415. and `full`. Defaults to `full`.
  416. +
  417. See <<ssl-tls-settings,`ssl.verification_mode`>> for an explanation of these values.
  418. `ssl.supported_protocols`::
  419. Supported protocols for TLS/SSL (with versions). Defaults to `TLSv1.3,TLSv1.2,TLSv1.1`.
  420. `ssl.cipher_suites`:: Specifies the cipher suites that should be supported when
  421. communicating with the LDAP server.
  422. Supported cipher suites can be found in Oracle's http://docs.oracle.com/javase/8/docs/technotes/guides/security/SunProviders.html[
  423. Java Cryptography Architecture documentation]. See <<ssl-tls-settings,`ssl.cipher_suites`>>
  424. for the default value.
  425. `cache.ttl`::
  426. Specifies the time-to-live for cached user entries. A user and a hash of its
  427. credentials are cached for this period of time. Use the standard {es}
  428. <<time-units,time units>>. Defaults to `20m`.
  429. `cache.max_users`::
  430. Specifies the maximum number of user entries that the cache can contain.
  431. Defaults to `100000`.
  432. `cache.hash_algo`::
  433. (Expert Setting) Specifies the hashing algorithm that is used for the
  434. in-memory cached user credentials. See <<cache-hash-algo>>. Defaults to `ssha256`.
  435. `authentication.enabled`:: If set to `false`, disables authentication support in
  436. this realm, so that it only supports user lookups.
  437. (See the {stack-ov}/run-as-privilege.html[run as] and
  438. {stack-ov}/realm-chains.html#authorization_realms[authorization realms] features).
  439. Defaults to `true`.
  440. [[ref-ad-settings]]
  441. [float]
  442. ===== Active Directory realm settings
  443. The `type` setting must be set to `active_directory`. In addition to the
  444. <<ref-realm-settings,settings that are valid for all realms>>, you can specify
  445. the following settings:
  446. `url`::
  447. One or more LDAP URLs in the `ldap[s]://<server>:<port>` format. Defaults to
  448. `ldap://<domain_name>:389`. This setting is required when connecting using
  449. SSL/TLS or when using a custom port.
  450. +
  451. To provide multiple URLs, use a YAML array (`["ldap://server1:636", "ldap://server2:636"]`)
  452. or comma-separated string (`"ldap://server1:636, ldap://server2:636"`).
  453. +
  454. While both are supported, you can't mix the `ldap` and `ldaps` protocols.
  455. +
  456. If no URL is provided, {es} uses a default of `ldap://<domain_name>:389`. This
  457. default uses the `domain_name` setting value and assumes an unencrypted
  458. connection to port 389.
  459. `load_balance.type`::
  460. The behavior to use when there are multiple LDAP URLs defined. For supported
  461. values see <<load-balancing,load balancing and failover types>>.
  462. Defaults to `failover`.
  463. `load_balance.cache_ttl`::
  464. When using `dns_failover` or `dns_round_robin` as the load balancing type,
  465. this setting controls the amount of time to cache DNS lookups. Defaults
  466. to `1h`.
  467. `domain_name`::
  468. The domain name of Active Directory. If the `url` and the `user_search_dn`
  469. settings are not specified, the cluster can derive those values from this
  470. setting. Required.
  471. `bind_dn`::
  472. The DN of the user that is used to bind to Active Directory and perform searches.
  473. Defaults to Empty. Due to its potential security impact, `bind_dn` is not
  474. exposed via the <<cluster-nodes-info,nodes info API>>.
  475. `bind_password`::
  476. deprecated[6.3] Use `secure_bind_password` instead. The password for the user
  477. that is used to bind to Active Directory. Defaults to Empty. Due to its
  478. potential security impact, `bind_password` is not exposed via the
  479. <<cluster-nodes-info,nodes info API>>.
  480. `secure_bind_password` (<<secure-settings,Secure>>)::
  481. The password for the user that is used to bind to Active Directory.
  482. Defaults to Empty.
  483. `unmapped_groups_as_roles`::
  484. If set to `true`, the names of any unmapped Active Directory groups are used as
  485. role names and assigned to the user. A group is considered _unmapped_ when it
  486. is not referenced in any role-mapping files. API-based role mappings are not
  487. considered. Defaults to `false`.
  488. `files.role_mapping`::
  489. The <<security-files,location>> for the YAML
  490. role mapping configuration file. Defaults to `ES_PATH_CONF/role_mapping.yml`.
  491. `user_search.base_dn`::
  492. The context to search for a user. Defaults to the root
  493. of the Active Directory domain.
  494. `user_search.scope`::
  495. Specifies whether the user search should be `sub_tree`, `one_level` or `base`.
  496. `one_level` only searches users directly contained within the `base_dn`.
  497. `sub_tree` searches all objects contained under `base_dn`. `base`
  498. specifies that the `base_dn` is a user object, and that it is the
  499. only user considered. Defaults to `sub_tree`.
  500. `user_search.filter`::
  501. Specifies a filter to use to lookup a user given a username. The default
  502. filter looks up `user` objects with either `sAMAccountName` or
  503. `userPrincipalName`. If specified, this must be a valid LDAP user search filter.
  504. For example `(&(objectClass=user)(sAMAccountName={0}))`. For more information,
  505. see
  506. https://msdn.microsoft.com/en-us/library/aa746475(v=vs.85).aspx[Search Filter Syntax].
  507. `user_search.upn_filter`::
  508. Specifies a filter to use to lookup a user given a user principal name.
  509. The default filter looks up `user` objects with
  510. a matching `userPrincipalName`. If specified, this
  511. must be a valid LDAP user search filter. For example,
  512. `(&(objectClass=user)(userPrincipalName={1}))`. `{1}` is the full user principal name
  513. provided by the user. For more information, see
  514. https://msdn.microsoft.com/en-us/library/aa746475(v=vs.85).aspx[Search Filter Syntax].
  515. `user_search.down_level_filter`::
  516. Specifies a filter to use to lookup a user given a down level logon name
  517. (DOMAIN\user). The default filter looks up `user` objects with a matching
  518. `sAMAccountName` in the domain provided. If specified, this
  519. must be a valid LDAP user search filter. For example,
  520. `(&(objectClass=user)(sAMAccountName={0}))`. For more information, see
  521. https://msdn.microsoft.com/en-us/library/aa746475(v=vs.85).aspx[Search Filter Syntax].
  522. `user_search.pool.enabled`::
  523. Enables or disables connection pooling for user search. When
  524. disabled a new connection is created for every search. The
  525. default is `true` when `bind_dn` is provided.
  526. `user_search.pool.size`::
  527. The maximum number of connections to the Active Directory server to allow in the
  528. connection pool. Defaults to `20`.
  529. `user_search.pool.initial_size`::
  530. The initial number of connections to create to the Active Directory server on startup.
  531. Defaults to `0`. If the LDAP server is down, values greater than 0
  532. could cause startup failures.
  533. `user_search.pool.health_check.enabled`::
  534. Enables or disables a health check on Active Directory connections in the connection
  535. pool. Connections are checked in the background at the specified interval.
  536. Defaults to `true`.
  537. `user_search.pool.health_check.dn`::
  538. The distinguished name to be retrieved as part of the health check.
  539. Defaults to the value of `bind_dn` if that setting is present. Otherwise, it
  540. defaults to the value of the `user_search.base_dn` setting.
  541. `user_search.pool.health_check.interval`::
  542. The interval to perform background checks of connections in the pool.
  543. Defaults to `60s`.
  544. `group_search.base_dn`::
  545. The context to search for groups in which the user has membership. Defaults
  546. to the root of the Active Directory domain.
  547. `group_search.scope`::
  548. Specifies whether the group search should be `sub_tree`, `one_level` or
  549. `base`. `one_level` searches for groups directly contained within the
  550. `base_dn`. `sub_tree` searches all objects contained under `base_dn`.
  551. `base` specifies that the `base_dn` is a group object, and that it is
  552. the only group considered. Defaults to `sub_tree`.
  553. `metadata`::
  554. A list of additional LDAP attributes that should be loaded from the
  555. LDAP server and stored in the authenticated user's metadata field.
  556. `timeout.tcp_connect`::
  557. The TCP connect timeout period for establishing an LDAP connection.
  558. An `s` at the end indicates seconds, or `ms` indicates milliseconds.
  559. Defaults to `5s` (5 seconds ).
  560. `timeout.tcp_read`::
  561. The TCP read timeout period after establishing an LDAP connection.
  562. An `s` at the end indicates seconds, or `ms` indicates milliseconds.
  563. Defaults to `5s` (5 seconds ).
  564. `timeout.ldap_search`::
  565. The LDAP Server enforced timeout period for an LDAP search.
  566. An `s` at the end indicates seconds, or `ms` indicates milliseconds.
  567. Defaults to `5s` (5 seconds ).
  568. `ssl.certificate`::
  569. Path to a PEM encoded file containing the certificate (or certificate chain)
  570. that will be presented to clients when they connect.
  571. `ssl.certificate_authorities`::
  572. List of paths to PEM encoded certificate files that should be trusted.
  573. `ssl.certificate_authorities` and `ssl.truststore.path` cannot be used at the
  574. same time.
  575. `ssl.key`::
  576. Path to the PEM encoded file containing the private key, which is used when the
  577. Active Directory server requires client authentication. `ssl.key` and
  578. `ssl.keystore.path` cannot be used at the same time.
  579. `ssl.key_passphrase`::
  580. The passphrase that is used to decrypt the private key. This value is
  581. optional as the key might not be encrypted.
  582. `ssl.secure_key_passphrase` (<<secure-settings,Secure>>)::
  583. The passphrase that is used to decrypt the private key. This value is
  584. optional as the key might not be encrypted.
  585. `ssl.keystore.key_password`::
  586. The password for the key in the keystore. Defaults to the keystore password.
  587. `ssl.keystore.secure_key_password` (<<secure-settings,Secure>>)::
  588. The password for the key in the keystore. Defaults to the keystore password.
  589. `ssl.keystore.password`::
  590. The password to the keystore.
  591. `ssl.secure_keystore.password` (<<secure-settings,Secure>>)::
  592. The password to the keystore.
  593. `ssl.keystore.path`::
  594. The path to the Java Keystore file that contains a private key and certificate.
  595. `ssl.key` and `ssl.keystore.path` cannot be used at the same time.
  596. `ssl.keystore.type`::
  597. The format of the keystore file. Should be `jks` to use the Java
  598. Keystore format, `PKCS12` to use PKCS#12 files, or `PKCS11` to use a PKCS#11 token.
  599. The default is `jks`.
  600. `ssl.truststore.password`::
  601. The password to the truststore.
  602. `ssl.truststore.secure_password` (<<secure-settings,Secure>>)::
  603. The password to the truststore.
  604. `ssl.truststore.path`::
  605. The path to the Java Keystore file that contains the certificates to trust.
  606. `ssl.certificate_authorities` and `ssl.truststore.path` cannot be used at the
  607. same time.
  608. `ssl.truststore.type`::
  609. The format of the truststore file. Should be `jks` to use the Java
  610. Keystore format, `PKCS12` to use PKCS#12 files, or `PKCS11` to use a PKCS#11 token.
  611. The default is `jks`.
  612. `ssl.verification_mode`::
  613. Indicates the type of verification when using `ldaps` to protect against man
  614. in the middle attacks and certificate forgery. Values are `none`, `certificate`,
  615. and `full`. Defaults to `full`.
  616. +
  617. See <<ssl-tls-settings,`ssl.verification_mode`>> for an explanation of these values.
  618. `ssl.supported_protocols`::
  619. Supported protocols for TLS/SSL (with versions). Defaults to `TLSv1.3,TLSv1.2,TLSv1.1`.
  620. `ssl.cipher_suites`:: Specifies the cipher suites that should be supported when
  621. communicating with the Active Directory server.
  622. Supported cipher suites can be found in Oracle's http://docs.oracle.com/javase/8/docs/technotes/guides/security/SunProviders.html[
  623. Java Cryptography Architecture documentation]. See <<ssl-tls-settings,`ssl.cipher_suites`>> for
  624. the default values.
  625. `cache.ttl`::
  626. Specifies the time-to-live for cached user entries. A user and a hash of its
  627. credentials are cached for this configured period of time. Use the
  628. standard Elasticsearch {ref}/common-options.html#time-units[time units]).
  629. Defaults to `20m`.
  630. `cache.max_users`::
  631. Specifies the maximum number of user entries that the cache can contain.
  632. Defaults to `100000`.
  633. `cache.hash_algo`::
  634. (Expert Setting) Specifies the hashing algorithm that is used for
  635. the in-memory cached user credentials. See <<cache-hash-algo>>. Defaults to `ssha256`.
  636. `authentication.enabled`:: If set to `false`, disables authentication support in
  637. this realm, so that it only supports user lookups.
  638. (See the {stack-ov}/run-as-privilege.html[run as] and
  639. {stack-ov}/realm-chains.html#authorization_realms[authorization realms] features).
  640. Defaults to `true`.
  641. `follow_referrals`::
  642. If set to `true`, {es} follows referrals returned by the LDAP server.
  643. Referrals are URLs returned by the server that are to be used to continue the
  644. LDAP operation (such as `search`). Defaults to `true`.
  645. [[ref-pki-settings]]
  646. [float]
  647. ===== PKI realm settings
  648. The `type` setting must be set to `pki`. In addition to the
  649. <<ref-realm-settings,settings that are valid for all realms>>, you can specify
  650. the following settings:
  651. `username_pattern`::
  652. The regular expression pattern used to extract the username from the
  653. certificate DN. The first match group is the used as the username.
  654. Defaults to `CN=(.*?)(?:,\|$)`.
  655. `certificate_authorities`::
  656. List of paths to the PEM certificate files that should be used to authenticate a
  657. user's certificate as trusted. Defaults to the trusted certificates configured
  658. for SSL. This setting cannot be used with `truststore.path`.
  659. `truststore.algorithm`::
  660. Algorithm for the truststore. Defaults to `SunX509`.
  661. `truststore.password`::
  662. The password for the truststore. Must be provided if `truststore.path` is set.
  663. `truststore.secure_password` (<<secure-settings,Secure>>)::
  664. The password for the truststore.
  665. `truststore.path`::
  666. The path of a truststore to use. Defaults to the trusted certificates configured
  667. for SSL. This setting cannot be used with `certificate_authorities`.
  668. `files.role_mapping`::
  669. Specifies the <<security-files,location>> of the
  670. {stack-ov}/mapping-roles.html[YAML role mapping configuration file].
  671. Defaults to `ES_PATH_CONF/role_mapping.yml`.
  672. `authorization_realms`::
  673. The names of the realms that should be consulted for delegated authorization.
  674. If this setting is used, then the PKI realm does not perform role mapping and
  675. instead loads the user from the listed realms.
  676. See {stack-ov}/realm-chains.html#authorization_realms[Delegating authorization to another realm]
  677. `cache.ttl`::
  678. Specifies the time-to-live for cached user entries. A user and a hash of its
  679. credentials are cached for this period of time. Use the
  680. standard {es} {ref}/common-options.html#time-units[time units]).
  681. Defaults to `20m`.
  682. `cache.max_users`::
  683. Specifies the maximum number of user entries that the cache can contain.
  684. Defaults to `100000`.
  685. [[ref-saml-settings]]
  686. [float]
  687. ===== SAML realm settings
  688. The `type` setting must be set to `saml`. In addition to the
  689. <<ref-realm-settings,settings that are valid for all realms>>, you can specify
  690. the following settings:
  691. `idp.entity_id`::
  692. The Entity ID of the SAML Identity Provider. An Entity ID is a URI with a
  693. maximum length of 1024 characters. It can be a URL (https://idp.example.com/) or
  694. a URN (`urn:example.com:idp`) and can be found in the configuration or the SAML
  695. metadata of the Identity Provider.
  696. `idp.metadata.path`::
  697. The path _(recommended)_ or URL to a SAML 2.0 metadata file describing the
  698. capabilities and configuration of the Identity Provider.
  699. If a path is provided, then it is resolved relative to the {es} config
  700. directory.
  701. If a URL is provided, then it must be either a `file` URL or a `https` URL.
  702. {es} automatically polls this metadata resource and reloads
  703. the IdP configuration when changes are detected.
  704. File based resources are polled at a frequency determined by the global {es}
  705. `resource.reload.interval.high` setting, which defaults to 5 seconds.
  706. HTTPS resources are polled at a frequency determined by the realm's
  707. `idp.metadata.http.refresh` setting.
  708. `idp.metadata.http.refresh`::
  709. Controls the frequency with which `https` metadata is checked for changes.
  710. Defaults to `1h` (1 hour).
  711. `idp.use_single_logout`::
  712. Indicates whether to utilise the Identity Provider's Single Logout service
  713. (if one exists in the IdP metadata file).
  714. Defaults to `true`.
  715. `sp.entity_id`::
  716. The Entity ID to use for this SAML Service Provider. This should be entered as a
  717. URI. We recommend that you use the base URL of your Kibana instance. For example,
  718. `https://kibana.example.com/`.
  719. `sp.acs`::
  720. The URL of the Assertion Consumer Service within {kib}. Typically this is the
  721. "api/security/v1/saml" endpoint of your Kibana server. For example,
  722. `https://kibana.example.com/api/security/v1/saml`.
  723. `sp.logout`::
  724. The URL of the Single Logout service within {kib}. Typically this is the
  725. "logout" endpoint of your Kibana server. For example,
  726. `https://kibana.example.com/logout`.
  727. `attributes.principal`::
  728. The Name of the SAML attribute that contains the user's principal (username).
  729. `attributes.groups`::
  730. The Name of the SAML attribute that contains the user's groups.
  731. `attributes.name`::
  732. The Name of the SAML attribute that contains the user's full name.
  733. `attributes.mail`::
  734. The Name of the SAML attribute that contains the user's email address.
  735. `attributes.dn`::
  736. The Name of the SAML attribute that contains the user's X.50
  737. _Distinguished Name_.
  738. `attribute_patterns.principal`::
  739. A Java regular expression that is matched against the SAML attribute specified
  740. by `attributes.pattern` before it is applied to the user's _principal_ property.
  741. The attribute value must match the pattern and the value of the first
  742. _capturing group_ is used as the principal. For example, `^([^@]+)@example\\.com$`
  743. matches email addresses from the "example.com" domain and uses the local-part as
  744. the principal.
  745. `attribute_patterns.groups`::
  746. As per `attribute_patterns.principal`, but for the _group_ property.
  747. `attribute_patterns.name`::
  748. As per `attribute_patterns.principal`, but for the _name_ property.
  749. `attribute_patterns.mail`::
  750. As per `attribute_patterns.principal`, but for the _mail_ property.
  751. `attribute_patterns.dn`::
  752. As per `attribute_patterns.principal`, but for the _dn_ property.
  753. `nameid_format`::
  754. The NameID format that should be requested when asking the IdP to authenticate
  755. the current user. The default is to not include the `nameid_format` attribute.
  756. `nameid.allow_create`:: The value of the `AllowCreate` attribute of the
  757. `NameIdPolicy` element in an authentication request. The default value is false.
  758. `nameid.sp_qualifier`:: The value of the `SPNameQualifier` attribute of the
  759. `NameIdPolicy` element in an authentication request. The default is to not
  760. include the `SPNameQualifier` attribute.
  761. `force_authn`::
  762. Specifies whether to set the `ForceAuthn` attribute when requesting that the IdP
  763. authenticate the current user. If set to `true`, the IdP is required to verify
  764. the user’s identity, irrespective of any existing sessions they might have.
  765. Defaults to `false`.
  766. `populate_user_metadata`::
  767. Specifies whether to populate the {es} user's metadata with the values that are
  768. provided by the SAML attributes. Defaults to `true`.
  769. `authorization_realms`::
  770. The names of the realms that should be consulted for delegated authorization.
  771. If this setting is used, then the SAML realm does not perform role mapping and
  772. instead loads the user from the listed realms.
  773. See {stack-ov}/realm-chains.html#authorization_realms[Delegating authorization to another realm]
  774. `allowed_clock_skew`::
  775. The maximum amount of skew that can be tolerated between the IdP's clock and the
  776. {es} node's clock.
  777. Defaults to `3m` (3 minutes).
  778. `req_authn_context_class_ref`::
  779. A comma separated list of Authentication Context Class Reference values to be
  780. included in the Requested Authentication Context when requesting the IdP to
  781. authenticate the current user. The Authentication Context of the corresponding
  782. authentication response should contain at least one of the requested values.
  783. +
  784. For more information, see
  785. {stack-ov}/saml-guide-authentication.html#req-authn-context[Requesting specific authentication methods].
  786. [float]
  787. [[ref-saml-signing-settings]]
  788. ===== SAML realm signing settings
  789. If a signing key is configured (that is, either `signing.key` or
  790. `signing.keystore.path` is set), then {es} signs outgoing SAML messages.
  791. Signing can be configured using the following settings:
  792. `signing.saml_messages`::
  793. A list of SAML message types that should be signed or `*` to sign all messages.
  794. Each element in the list should be the local name of a SAML XML Element.
  795. Supported element types are `AuthnRequest`, `LogoutRequest` and `LogoutResponse`.
  796. Only valid if `signing.key` or `signing.keystore.path` is also specified.
  797. Defaults to `*`.
  798. `signing.key`::
  799. Specifies the path to the PEM encoded private key to use for SAML message signing.
  800. `signing.key` and `signing.keystore.path` cannot be used at the same time.
  801. `signing.secure_key_passphrase` (<<secure-settings,Secure>>)::
  802. Specifies the passphrase to decrypt the PEM encoded private key (`signing.key`)
  803. if it is encrypted.
  804. `signing.certificate`::
  805. Specifies the path to the PEM encoded certificate (or certificate chain) that
  806. corresponds to the `signing.key`. This certificate must also be included in the
  807. Service Provider metadata or manually configured within the IdP to allow for
  808. signature validation. This setting can only be used if `signing.key` is set.
  809. `signing.keystore.path`::
  810. The path to the keystore that contains a private key and certificate.
  811. Must be either a Java Keystore (jks) or a PKCS#12 file.
  812. `signing.key` and `signing.keystore.path` cannot be used at the same time.
  813. `signing.keystore.type`::
  814. The type of the keystore in `signing.keystore.path`.
  815. Must be either `jks` or `PKCS12`. If the keystore path ends in ".p12", ".pfx",
  816. or "pkcs12", this setting defaults to `PKCS12`. Otherwise, it defaults to `jks`.
  817. `signing.keystore.alias`::
  818. Specifies the alias of the key within the keystore that should be
  819. used for SAML message signing. If the keystore contains more than one private
  820. key, this setting must be specified.
  821. `signing.keystore.secure_password` (<<secure-settings,Secure>>)::
  822. The password to the keystore in `signing.keystore.path`.
  823. `signing.keystore.secure_key_password` (<<secure-settings,Secure>>)::
  824. The password for the key in the keystore (`signing.keystore.path`).
  825. Defaults to the keystore password.
  826. [float]
  827. [[ref-saml-encryption-settings]]
  828. ===== SAML realm encryption settings
  829. If an encryption key is configured (that is, either `encryption.key` or
  830. `encryption.keystore.path` is set), then {es} publishes an encryption
  831. certificate when generating metadata and attempts to decrypt incoming SAML
  832. content. Encryption can be configured using the following settings:
  833. `encryption.key`::
  834. Specifies the path to the PEM encoded private key to use for SAML message
  835. decryption.
  836. `encryption.key` and `encryption.keystore.path` cannot be used at the same time.
  837. `encryption.secure_key_passphrase` (<<secure-settings,Secure>>)::
  838. Specifies the passphrase to decrypt the PEM encoded private key
  839. (`encryption.key`) if it is encrypted.
  840. `encryption.certificate`::
  841. Specifies the path to the PEM encoded certificate (or certificate chain) that is
  842. associated with the `encryption.key`. This certificate must also be included in
  843. the Service Provider metadata or manually configured within the IdP to enable
  844. message encryption. This setting can be used only if `encryption.key` is set.
  845. `encryption.keystore.path`::
  846. The path to the keystore that contains a private key and certificate.
  847. Must be either a Java Keystore (jks) or a PKCS#12 file.
  848. `encryption.key` and `encryption.keystore.path` cannot be used at the same time.
  849. `encryption.keystore.type`::
  850. The type of the keystore (`encryption.keystore.path`).
  851. Must be either `jks` or `PKCS12`. If the keystore path ends in ".p12", ".pfx",
  852. or "pkcs12", this setting defaults to `PKCS12`. Otherwise, it defaults to `jks`.
  853. `encryption.keystore.alias`::
  854. Specifies the alias of the key within the keystore (`encryption.keystore.path`)
  855. that should be used for SAML message decryption. If not specified, all compatible
  856. key pairs from the keystore are considered as candidate keys for decryption.
  857. `encryption.keystore.secure_password` (<<secure-settings,Secure>>)::
  858. The password to the keystore (`encryption.keystore.path`).
  859. `encryption.keystore.secure_key_password` (<<secure-settings,Secure>>)::
  860. The password for the key in the keystore (`encryption.keystore.path`). Only a
  861. single password is supported. If you are using multiple decryption keys,
  862. they cannot have individual passwords.
  863. [float]
  864. [[ref-saml-ssl-settings]]
  865. ===== SAML realm SSL settings
  866. If you are loading the IdP metadata over SSL/TLS (that is, `idp.metadata.path`
  867. is a URL using the `https` protocol), the following settings can be used to
  868. configure SSL.
  869. NOTE: These settings are not used for any purpose other than loading metadata
  870. over https.
  871. `ssl.key`::
  872. Specifies the path to the PEM encoded private key to use for http client
  873. authentication (if required). `ssl.key` and `ssl.keystore.path` cannot be used
  874. at the same time.
  875. `ssl.key_passphrase`::
  876. Specifies the
  877. passphrase to decrypt the PEM encoded private key (`ssl.key`) if it is
  878. encrypted. Cannot be used with `ssl.secure_key_passphrase`.
  879. `ssl.secure_key_passphrase` (<<secure-settings,Secure>>)::
  880. Specifies the
  881. passphrase to decrypt the PEM encoded private key (`ssl.key`) if it is
  882. encrypted. Cannot be used with `ssl.key_passphrase`.
  883. `ssl.certificate`::
  884. Specifies the
  885. path to the PEM encoded certificate (or certificate chain) that is associated
  886. with the key (`ssl.key`). This setting can be used only if `ssl.key` is set.
  887. `ssl.certificate_authorities`::
  888. Specifies the
  889. paths to the PEM encoded certificate authority certificates that should be
  890. trusted. `ssl.certificate_authorities` and `ssl.truststore.path` cannot be
  891. used at the same time.
  892. `ssl.keystore.path`::
  893. Specifies the path to
  894. the keystore that contains a private key and certificate.
  895. Must be either a Java Keystore (jks) or a PKCS#12 file.
  896. `ssl.key` and `ssl.keystore.path` cannot be used at the same time.
  897. `ssl.keystore.type`::
  898. The type of the keystore (`ssl.keystore.path`). Must be either `jks` or `PKCS12`.
  899. If the keystore path ends in ".p12", ".pfx" or "pkcs12", this setting defaults
  900. to `PKCS12`. Otherwise, it defaults to `jks`.
  901. `ssl.keystore.password`::
  902. The password to the keystore (`ssl.keystore.path`). This setting cannot be used
  903. with `ssl.keystore.secure_password`.
  904. `ssl.keystore.secure_password` (<<secure-settings,Secure>>)::
  905. The password to the keystore (`ssl.keystore.path`).
  906. This setting cannot be used with `ssl.keystore.password`.
  907. `ssl.keystore.key_password`::
  908. The password for the key in the keystore (`ssl.keystore.path`).
  909. Defaults to the keystore password. This setting cannot be used with
  910. `ssl.keystore.secure_key_password`.
  911. `ssl.keystore.secure_key_password` (<<secure-settings,Secure>>)::
  912. The password for the key in the keystore (`ssl.keystore.path`).
  913. Defaults to the keystore password. This setting cannot be used with
  914. `ssl.keystore.key_password`.
  915. `ssl.truststore.path`::
  916. The path to the
  917. keystore that contains the certificates to trust.
  918. Must be either a Java Keystore (jks) or a PKCS#12 file.
  919. `ssl.certificate_authorities` and `ssl.truststore.path` cannot be used at the
  920. same time.
  921. `ssl.truststore.type`::
  922. The type of the truststore (`ssl.truststore.path`). Must be either `jks` or
  923. `PKCS12`. If the keystore path ends in ".p12", ".pfx" or "pkcs12", this setting
  924. defaults to `PKCS12`. Otherwise, it defaults to `jks`.
  925. `ssl.truststore.password`::
  926. The password to the truststore (`ssl.truststore.path`). This setting cannot be
  927. used with `ssl.truststore.secure_password`.
  928. `ssl.truststore.secure_password` (<<secure-settings,Secure>>)::
  929. The password to the truststore (`ssl.truststore.path`). This setting cannot be
  930. used with `ssl.truststore.password`.
  931. `ssl.verification_mode`::
  932. One of `full`
  933. (verify the hostname and the certificate path), `certificate` (verify the
  934. certificate path, but not the hostname) or `none` (perform no verification).
  935. Defaults to `full`.
  936. +
  937. See <<ssl-tls-settings,`ssl.verification_mode`>> for a more detailed explanation of these values.
  938. `ssl.supported_protocols`::
  939. Specifies the supported protocols for TLS/SSL. Defaults to `TLSv1.3,TLSv1.2,TLSv1.1`.
  940. `ssl.cipher_suites`::
  941. Specifies the
  942. cipher suites that should be supported.
  943. [float]
  944. [[ref-kerberos-settings]]
  945. ===== Kerberos realm settings
  946. For a Kerberos realm, the `type` must be set to `kerberos`. In addition to the
  947. <<ref-realm-settings,settings that are valid for all realms>>, you can specify
  948. the following settings:
  949. `keytab.path`:: Specifies the path to the Kerberos keytab file that contains the
  950. service principal used by this {es} node. This must be a location within the
  951. {es} configuration directory and the file must have read permissions. Required.
  952. `remove_realm_name`:: Set to `true` to remove the realm part of principal names.
  953. Principal names in Kerberos have the form `user/instance@REALM`. If this option
  954. is `true`, the realm part (`@REALM`) will not be included in the username.
  955. Defaults to `false`.
  956. `krb.debug`:: Set to `true` to enable debug logs for the Java login module that
  957. provides support for Kerberos authentication. Defaults to `false`.
  958. `cache.ttl`:: The time-to-live for cached user entries. A user is cached for
  959. this period of time. Specify the time period using the standard {es}
  960. <<time-units,time units>>. Defaults to `20m`.
  961. `cache.max_users`:: The maximum number of user entries that can live in the
  962. cache at any given time. Defaults to 100,000.
  963. `authorization_realms`::
  964. The names of the realms that should be consulted for delegated authorization.
  965. If this setting is used, then the Kerberos realm does not perform role mapping and
  966. instead loads the user from the listed realms.
  967. See {stack-ov}/realm-chains.html#authorization_realms[Delegating authorization to another realm]
  968. [[ref-oidc-settings]]
  969. [float]
  970. ===== OpenID Connect realm settings
  971. In addition to the <<ref-realm-settings,settings that are valid for all realms>>, you
  972. can specify the following settings:
  973. `op.issuer`::
  974. A verifiable Identifier for your OpenID Connect Provider. An Issuer
  975. Identifier is usually a case sensitive URL using the https scheme that contains
  976. scheme, host, and optionally, port number and path components and no query or
  977. fragment components. The value for this setting should be provided by your OpenID
  978. Connect Provider.
  979. `op.authorization_endpoint`::
  980. The URL for the Authorization Endpoint at the
  981. OpenID Connect Provider. The value for this setting should be provided by your OpenID
  982. Connect Provider.
  983. `op.token_endpoint`::
  984. The URL for the Token Endpoint at the OpenID Connect Provider.
  985. The value for this setting should be provided by your OpenID Connect Provider.
  986. `op.userinfo_endpoint`::
  987. The URL for the User Info Endpoint at the OpenID Connect Provider.
  988. The value for this setting should be provided by your OpenID Connect Provider.
  989. `op.endsession_endpoint`::
  990. The URL for the End Session Endpoint at the OpenID Connect
  991. Provider. The value for this setting should be provided by your OpenID Connect Provider.
  992. `op.jwkset_path`::
  993. The path or URL to a JSON Web Key Set with the key material that the OpenID Connect
  994. Provider uses for signing tokens and claims responses.
  995. If a path is provided, then it is resolved relative to the {es} config
  996. directory.
  997. If a URL is provided, then it must be either a `file` URL or a `https` URL.
  998. {es} automatically caches the retrieved JWK set to avoid unnecessary HTTP
  999. requests but will attempt to refresh the JWK upon signature verification
  1000. failure, as this might indicate that the OpenID Connect Provider has
  1001. rotated the signing keys.
  1002. File based resources are polled at a frequency determined by the global {es}
  1003. `resource.reload.interval.high` setting, which defaults to 5 seconds.
  1004. `rp.client_id`::
  1005. The OAuth 2.0 Client Identifier that was assigned to {es} during registration
  1006. at the OpenID Connect Provider
  1007. `rp.client_secret`(<<secure-settings,Secure>>)::
  1008. The OAuth 2.0 Client Secret that was assigned to {es} during registration
  1009. at the OpenID Connect Provider
  1010. `rp.redirect_uri`::
  1011. The Redirect URI within {kib}. Typically this is the
  1012. "api/security/v1/oidc" endpoint of your Kibana server. For example,
  1013. `https://kibana.example.com/api/security/v1/oidc`.
  1014. `rp.response_type`::
  1015. OAuth 2.0 Response Type value that determines the authorization
  1016. processing flow to be used. Can be `code` for authorization code grant flow,
  1017. or one of `id_token`, `id_token token` for the implicit flow.
  1018. `rp.signature_algorithm`::
  1019. The signature algorithm that will be used by {es} in order to verify the
  1020. signature of the id tokens it will receive from the OpenID Connect Provider.
  1021. Defaults to `RSA256`
  1022. `rp.requested_scopes`::
  1023. The scope values that will be requested by the OpenID Connect Provider as
  1024. part of the Authentication Request. Optional, defaults to `openid`
  1025. `rp.post_logout_redirect_uri`::
  1026. The Redirect URI (usually within {kib}) that the OpenID Connect Provider
  1027. should redirect the browser to after a successful Single Logout.
  1028. `claims.principal`::
  1029. The name of the OpenID Connect claim that contains the user's principal (username).
  1030. `claims.groups`::
  1031. The name of the OpenID Connect claim that contains the user's groups.
  1032. `claims.name`::
  1033. The name of the OpenID Connect claim that contains the user's full name.
  1034. `claims.mail`::
  1035. The name of the OpenID Connect claim that contains the user's email address.
  1036. `claims.dn`::
  1037. The name of the OpenID Connect claim that contains the user's X.509
  1038. _Distinguished Name_.
  1039. `claim_patterns.principal`::
  1040. A Java regular expression that is matched against the OpenID Connect claim specified
  1041. by `claims.principal` before it is applied to the user's _principal_ property.
  1042. The attribute value must match the pattern and the value of the first
  1043. _capturing group_ is used as the principal. For example, `^([^@]+)@example\\.com$`
  1044. matches email addresses from the "example.com" domain and uses the local-part as
  1045. the principal.
  1046. `claim_patterns.groups`::
  1047. As per `claim_patterns.principal`, but for the _group_ property.
  1048. `claim_patterns.name`::
  1049. As per `claim_patterns.principal`, but for the _name_ property.
  1050. `claim_patterns.mail`::
  1051. As per `claim_patterns.principal`, but for the _mail_ property.
  1052. `claim_patterns.dn`::
  1053. As per `claim_patterns.principal`, but for the _dn_ property.
  1054. `allowed_clock_skew`::
  1055. The maximum allowed clock skew to be taken into consideration when validating
  1056. id tokens with regards to their creation and expiration times.
  1057. `populate_user_metadata`::
  1058. Specifies whether to populate the {es} user's metadata with the values that are
  1059. provided by the OpenID Connect claims. Defaults to `true`.
  1060. `http.connect_timeout`::
  1061. Controls the behavior of the http client used for back-channel communication to
  1062. the OpenID Connect Provider endpoints. Specifies the timeout until a connection
  1063. is established. A value of zero means the timeout is not used. Defaults to `5s`
  1064. `http.connection_read_timeout`::
  1065. Controls the behavior of the http client used for back-channel communication to
  1066. the OpenID Connect Provider endpoints. Specifies the timeout used when
  1067. requesting a connection from the connection manager. Defaults to `5s`
  1068. `http.socket_timeout`::
  1069. Controls the behavior of the http client used for back-channel communication to
  1070. the OpenID Connect Provider endpoints. Specifies the socket timeout (SO_TIMEOUT)
  1071. in milliseconds, which is the timeout for waiting for data or, put differently,
  1072. a maximum period inactivity between two consecutive data packets). Defaults to
  1073. `5s`
  1074. `http.max_connections`::
  1075. Controls the behavior of the http client used for back-channel communication to
  1076. the OpenID Connect Provider endpoints. Specifies the maximum number of
  1077. connections allowed across all endpoints.
  1078. `http.max_endpoint_connections`::
  1079. Controls the behavior of the http client used for back-channel communication to
  1080. the OpenID Connect Provider endpoints. Specifies the maximum number of
  1081. connections allowed per endpoint.
  1082. [float]
  1083. [[ref-oidc-ssl-settings]]
  1084. ===== OpenID Connect realm SSL settings
  1085. The following settings can be used to configure SSL for all outgoing http connections
  1086. to the OpenID Connect Provider endpoints.
  1087. NOTE: These settings are _only_ used for the back-channel communication between
  1088. {es} and the OpenID Connect Provider
  1089. `ssl.key`::
  1090. Specifies the path to the PEM encoded private key to use for http client
  1091. authentication (if required). `ssl.key` and `ssl.keystore.path` cannot be used
  1092. at the same time.
  1093. `ssl.key_passphrase`::
  1094. Specifies the passphrase to decrypt the PEM encoded private key (`ssl.key`) if it is
  1095. encrypted. Cannot be used with `ssl.secure_key_passphrase`.
  1096. `ssl.secure_key_passphrase` (<<secure-settings,Secure>>)::
  1097. Specifies the passphrase to decrypt the PEM encoded private key (`ssl.key`) if it is
  1098. encrypted. Cannot be used with `ssl.key_passphrase`.
  1099. `ssl.certificate`::
  1100. Specifies the path to the PEM encoded certificate (or certificate chain) that is associated
  1101. with the key (`ssl.key`). This setting can be used only if `ssl.key` is set.
  1102. `ssl.certificate_authorities`::
  1103. Specifies the paths to the PEM encoded certificate authority certificates that should be
  1104. trusted. `ssl.certificate_authorities` and `ssl.truststore.path` cannot be
  1105. used at the same time.
  1106. `ssl.keystore.path`::
  1107. Specifies the path to the keystore that contains a private key and certificate.
  1108. Must be either a Java Keystore (jks) or a PKCS#12 file.
  1109. `ssl.key` and `ssl.keystore.path` cannot be used at the same time.
  1110. `ssl.keystore.type`::
  1111. The type of the keystore (`ssl.keystore.path`). Must be either `jks` or `PKCS12`.
  1112. If the keystore path ends in ".p12", ".pfx" or "pkcs12", this setting defaults
  1113. to `PKCS12`. Otherwise, it defaults to `jks`.
  1114. `ssl.keystore.password`::
  1115. The password to the keystore (`ssl.keystore.path`). This setting cannot be used
  1116. with `ssl.keystore.secure_password`.
  1117. `ssl.keystore.secure_password` (<<secure-settings,Secure>>)::
  1118. The password to the keystore (`ssl.keystore.path`).
  1119. This setting cannot be used with `ssl.keystore.password`.
  1120. `ssl.keystore.key_password`::
  1121. The password for the key in the keystore (`ssl.keystore.path`).
  1122. Defaults to the keystore password. This setting cannot be used with
  1123. `ssl.keystore.secure_key_password`.
  1124. `ssl.keystore.secure_key_password` (<<secure-settings,Secure>>)::
  1125. The password for the key in the keystore (`ssl.keystore.path`).
  1126. Defaults to the keystore password. This setting cannot be used with
  1127. `ssl.keystore.key_password`.
  1128. `ssl.truststore.path`::
  1129. The path to the keystore that contains the certificates to trust.
  1130. Must be either a Java Keystore (jks) or a PKCS#12 file.
  1131. `ssl.certificate_authorities` and `ssl.truststore.path` cannot be used at the
  1132. same time.
  1133. `ssl.truststore.type`::
  1134. The type of the truststore (`ssl.truststore.path`). Must be either `jks` or
  1135. `PKCS12`. If the keystore path ends in ".p12", ".pfx" or "pkcs12", this setting
  1136. defaults to `PKCS12`. Otherwise, it defaults to `jks`.
  1137. `ssl.truststore.password`::
  1138. The password to the truststore (`ssl.truststore.path`). This setting cannot be
  1139. used with `ssl.truststore.secure_password`.
  1140. `ssl.truststore.secure_password` (<<secure-settings,Secure>>)::
  1141. The password to the truststore (`ssl.truststore.path`). This setting cannot be
  1142. used with `ssl.truststore.password`.
  1143. `ssl.verification_mode`::
  1144. One of `full` (verify the hostname and the certificate path), `certificate` (verify the
  1145. certificate path, but not the hostname) or `none` (perform no verification).
  1146. Defaults to `full`.
  1147. +
  1148. See <<ssl-tls-settings,`ssl.verification_mode`>> for a more detailed explanation of these values.
  1149. `ssl.supported_protocols`::
  1150. Specifies the supported protocols for TLS/SSL. Defaults to `TLSv1.3,TLSv1.2,TLSv1.1` if
  1151. the JVM supports TLSv1.3, otherwise `TLSv1.2,TLSv1.1`.
  1152. `ssl.cipher_suites`::
  1153. Specifies the cipher suites that should be supported.
  1154. [float]
  1155. [[load-balancing]]
  1156. ===== Load balancing and failover
  1157. The `load_balance.type` setting can have the following values:
  1158. * `failover`: The URLs specified are used in the order that they are specified.
  1159. The first server that can be connected to will be used for all subsequent
  1160. connections. If a connection to that server fails then the next server that a
  1161. connection can be established to will be used for subsequent connections.
  1162. * `dns_failover`: In this mode of operation, only a single URL may be specified.
  1163. This URL must contain a DNS name. The system will be queried for all IP
  1164. addresses that correspond to this DNS name. Connections to the Active Directory
  1165. or LDAP server will always be tried in the order in which they were retrieved.
  1166. This differs from `failover` in that there is no reordering of the list and if a
  1167. server has failed at the beginning of the list, it will still be tried for each
  1168. subsequent connection.
  1169. * `round_robin`: Connections will continuously iterate through the list of
  1170. provided URLs. If a server is unavailable, iterating through the list of URLs
  1171. will continue until a successful connection is made.
  1172. * `dns_round_robin`: In this mode of operation, only a single URL may be
  1173. specified. This URL must contain a DNS name. The system will be queried for all
  1174. IP addresses that correspond to this DNS name. Connections will continuously
  1175. iterate through the list of addresses. If a server is unavailable, iterating
  1176. through the list of URLs will continue until a successful connection is made.
  1177. [float]
  1178. [[ssl-tls-settings]]
  1179. ==== Default values for TLS/SSL settings
  1180. In general, the values below represent the default values for the various TLS
  1181. settings.
  1182. The prefixes for these settings are based on the context in which they are
  1183. used (e.g. `xpack.security.authc.realms.ldap.corp_ldap.ssl.verification_mode`
  1184. or `xpack.security.transport.ssl.supported_protocols`).
  1185. For more information, see
  1186. {stack-ov}/encrypting-communications.html[Encrypting communications].
  1187. `*.ssl.supported_protocols`::
  1188. Supported protocols with versions. Valid protocols: `SSLv2Hello`,
  1189. `SSLv3`, `TLSv1`, `TLSv1.1`, `TLSv1.2`, `TLSv1.3`. Defaults to `TLSv1.3,TLSv1.2,TLSv1.1`.
  1190. +
  1191. --
  1192. NOTE: If `xpack.security.fips_mode.enabled` is `true`, you cannot use `SSLv2Hello`
  1193. or `SSLv3`. See <<fips-140-compliance>>.
  1194. --
  1195. `*.ssl.client_authentication`::
  1196. Controls the server's behavior in regard to requesting a certificate
  1197. from client connections. Valid values are `required`, `optional`, and `none`.
  1198. `required` forces a client to present a certificate, while `optional`
  1199. requests a client certificate but the client is not required to present one.
  1200. Defaults to `required`, except for HTTP, which defaults to `none`. See
  1201. <<http-tls-ssl-settings>>.
  1202. `*.ssl.verification_mode`::
  1203. Controls the verification of certificates. Valid values are:
  1204. - `full`, which verifies that the provided certificate is signed by a trusted
  1205. authority (CA) and also verifies that the server's hostname (or IP
  1206. address) matches the names identified within the certificate.
  1207. - `certificate`, which verifies that the provided certificate is signed by a
  1208. trusted authority (CA), but does not perform any hostname verification.
  1209. - `none`, which performs _no verification_ of the server's certificate. This mode
  1210. disables many of the security benefits of SSL/TLS and should only be
  1211. used after very careful consideration. It is primarily intended as a
  1212. temporary diagnostic mechanism when attempting to resolve TLS errors,
  1213. and its use on production clusters is strongly discouraged.
  1214. +
  1215. The default value is `full`.
  1216. `*.ssl.cipher_suites`::
  1217. Supported cipher suites can be found in Oracle's
  1218. https://docs.oracle.com/en/java/javase/11/security/oracle-providers.html#GUID-7093246A-31A3-4304-AC5F-5FB6400405E2[Java Cryptography Architecture documentation].
  1219. Defaults to `TLS_AES_256_GCM_SHA384`, `TLS_AES_128_GCM_SHA256`,
  1220. `TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384`, `TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256`,
  1221. `TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384`, `TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256`,
  1222. `TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384`, `TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256`,
  1223. `TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384`, `TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256`,
  1224. `TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA`, `TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA`,
  1225. `TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA`, `TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA`,
  1226. `TLS_RSA_WITH_AES_256_GCM_SHA384`, `TLS_RSA_WITH_AES_128_GCM_SHA256`,
  1227. `TLS_RSA_WITH_AES_256_CBC_SHA256`, `TLS_RSA_WITH_AES_128_CBC_SHA256`,
  1228. `TLS_RSA_WITH_AES_256_CBC_SHA`, `TLS_RSA_WITH_AES_128_CBC_SHA`.
  1229. [float]
  1230. [[tls-ssl-key-settings]]
  1231. ===== TLS/SSL key and trusted certificate settings
  1232. The following settings are used to specify a private key, certificate, and the
  1233. trusted certificates that should be used when communicating over an SSL/TLS
  1234. connection. If no trusted certificates are configured, the default certificates
  1235. that are trusted by the JVM will be trusted along with the certificate(s)
  1236. associated with a key in the same context. The key and certificate must be in
  1237. place for connections that require client authentication or when acting as a
  1238. SSL enabled server.
  1239. [[pkcs12-truststore-note]]
  1240. [NOTE]
  1241. Storing trusted certificates in a PKCS#12 file, although supported, is
  1242. uncommon in practice. The {ref}/certutil.html[`elasticsearch-certutil`] tool,
  1243. as well as Java's `keytool`, are designed to generate PKCS#12 files that
  1244. can be used both as a keystore and as a truststore, but this may not be the
  1245. case for container files that are created using other tools. Usually,
  1246. PKCS#12 files only contain secret and private entries. To confirm that
  1247. a PKCS#12 container includes trusted certificate ("anchor") entries look for
  1248. `2.16.840.1.113894.746875.1.1: <Unsupported tag 6>` in the
  1249. `openssl pkcs12 -info` output, or `trustedCertEntry` in the
  1250. `keytool -list` output.
  1251. [[http-tls-ssl-settings]]
  1252. :ssl-prefix: xpack.security.http
  1253. :component: HTTP
  1254. :client-auth-default: none
  1255. :verifies!:
  1256. :server:
  1257. :ssl-context: security-http
  1258. include::ssl-settings.asciidoc[]
  1259. [[transport-tls-ssl-settings]]
  1260. :ssl-prefix: xpack.security.transport
  1261. :component: Transport
  1262. :client-auth-default!:
  1263. :verifies:
  1264. :server:
  1265. :ssl-context: security-transport
  1266. include::ssl-settings.asciidoc[]
  1267. [[ssl-tls-profile-settings]]
  1268. [float]
  1269. ===== Transport profile TLS/SSL settings
  1270. The same settings that are available for the <<transport-tls-ssl-settings, default transport>>
  1271. are also available for each transport profile. By default, the settings for a
  1272. transport profile will be the same as the default transport unless they
  1273. are specified.
  1274. As an example, lets look at the key setting. For the default transport
  1275. this is `xpack.security.transport.ssl.key`. In order to use this setting in a
  1276. transport profile, use the prefix `transport.profiles.$PROFILE.xpack.security.` and
  1277. append the portion of the setting after `xpack.security.transport.`. For the key
  1278. setting, this would be `transport.profiles.$PROFILE.xpack.security.ssl.key`.
  1279. [float]
  1280. [[ip-filtering-settings]]
  1281. ==== IP filtering settings
  1282. You can configure the following settings for {stack-ov}/ip-filtering.html[IP filtering].
  1283. `xpack.security.transport.filter.allow`::
  1284. List of IP addresses to allow.
  1285. `xpack.security.transport.filter.deny`::
  1286. List of IP addresses to deny.
  1287. `xpack.security.http.filter.allow`::
  1288. List of IP addresses to allow just for HTTP.
  1289. `xpack.security.http.filter.deny`::
  1290. List of IP addresses to deny just for HTTP.
  1291. `transport.profiles.$PROFILE.xpack.security.filter.allow`::
  1292. List of IP addresses to allow for this profile.
  1293. `transport.profiles.$PROFILE.xpack.security.filter.deny`::
  1294. List of IP addresses to deny for this profile.
  1295. include::security-hash-settings.asciidoc[]