1
0

security-settings.asciidoc 98 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497
  1. [role="xpack"]
  2. [[security-settings]]
  3. === Security settings in {es}
  4. ++++
  5. <titleabbrev>Security settings</titleabbrev>
  6. ++++
  7. You configure `xpack.security` settings to
  8. <<anonymous-access-settings,enable anonymous access>> and perform message
  9. authentication,
  10. <<field-document-security-settings,set up document and field level security>>,
  11. <<realm-settings,configure realms>>,
  12. <<ssl-tls-settings,encrypt communications with SSL>>,and
  13. <<auditing-settings,audit security events>>.
  14. All of these settings can be added to the `elasticsearch.yml` configuration file,
  15. with the exception of the secure settings, which you add to the {es} keystore.
  16. For more information about creating and updating the {es} keystore, see
  17. <<secure-settings>>.
  18. [discrete]
  19. [[general-security-settings]]
  20. ==== General security settings
  21. `xpack.security.enabled`::
  22. (<<static-cluster-setting,Static>>)
  23. Defaults to `true`, which enables {es} {security-features} on the node. +
  24. +
  25. --
  26. If set to `false`, {security-features} are disabled, which is not recommended.
  27. It also affects all {kib} instances that connect to this {es} instance; you do
  28. not need to disable {security-features} in those `kibana.yml` files. For more
  29. information about disabling {security-features} in specific {kib} instances, see
  30. {kibana-ref}/security-settings-kb.html[{kib} security settings].
  31. --
  32. `xpack.security.autoconfiguration.enabled`::
  33. (<<static-cluster-setting,Static>>)
  34. Defaults to `true`, which enables
  35. <<configuring-stack-security,security auto configuration>>.
  36. +
  37. --
  38. If set to `false`, security auto configuration is disabled, which is not
  39. recommended. When disabled, security is not configured automatically when
  40. starting {es} for the first time, which means that you must
  41. <<manually-configure-security,manually configure security>>.
  42. --
  43. `xpack.security.hide_settings`::
  44. (<<static-cluster-setting,Static>>)
  45. A comma-separated list of settings that are omitted from the results of the
  46. <<cluster-nodes-info,cluster nodes info API>>. You can use wildcards to include
  47. multiple settings in the list. For example, the following value hides all the
  48. settings for the ad1 active_directory realm:
  49. `xpack.security.authc.realms.active_directory.ad1.*`.
  50. The API already omits all `ssl` settings, `bind_dn`, and `bind_password` due to
  51. the sensitive nature of the information.
  52. `xpack.security.fips_mode.enabled`::
  53. (<<static-cluster-setting,Static>>)
  54. 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`.
  55. [discrete]
  56. [[password-hashing-settings]]
  57. ==== Password hashing settings
  58. `xpack.security.authc.password_hashing.algorithm`::
  59. (<<static-cluster-setting,Static>>)
  60. Specifies the hashing algorithm that is used for secure user credential storage.
  61. See <<password-hashing-algorithms>>.
  62. If `xpack.security.fips_mode.enabled` is true (see <<fips-140-compliance>>), defaults to `pbkdf2_stretch`.
  63. In all other cases, defaults to `bcrypt`.
  64. [discrete]
  65. [[anonymous-access-settings]]
  66. ==== Anonymous access settings
  67. You can configure the following anonymous access settings in
  68. `elasticsearch.yml`. For more information, see <<anonymous-access>>.
  69. `xpack.security.authc.anonymous.username`::
  70. (<<static-cluster-setting,Static>>)
  71. The username (principal) of the anonymous user. Defaults to `_es_anonymous_user`.
  72. `xpack.security.authc.anonymous.roles`::
  73. (<<static-cluster-setting,Static>>)
  74. The roles to associate with the anonymous user. Required.
  75. `xpack.security.authc.anonymous.authz_exception`::
  76. (<<static-cluster-setting,Static>>)
  77. When `true`, an HTTP 403 response is returned if the anonymous user
  78. does not have the appropriate permissions for the requested action. The
  79. user is not prompted to provide credentials to access the requested
  80. resource. When set to `false`, an HTTP 401 response is returned and the user
  81. can provide credentials with the appropriate permissions to gain
  82. access. Defaults to `true`.
  83. [discrete]
  84. [[security-automata-settings]]
  85. ==== Automata Settings
  86. In places where the {security-features} accept wildcard patterns (e.g. index
  87. patterns in roles, group matches in the role mapping API), each pattern is
  88. compiled into an Automaton. The follow settings are available to control this
  89. behaviour.
  90. `xpack.security.automata.max_determinized_states`::
  91. (<<static-cluster-setting,Static>>)
  92. The upper limit on how many automaton states may be created by a single pattern.
  93. This protects against too-difficult (e.g. exponentially hard) patterns.
  94. Defaults to `100,000`.
  95. `xpack.security.automata.cache.enabled`::
  96. (<<static-cluster-setting,Static>>)
  97. Whether to cache the compiled automata. Compiling automata can be CPU intensive
  98. and may slowdown some operations. The cache reduces the frequency with which
  99. automata need to be compiled.
  100. Defaults to `true`.
  101. `xpack.security.automata.cache.size`::
  102. (<<static-cluster-setting,Static>>)
  103. The maximum number of items to retain in the automata cache.
  104. Defaults to `10,000`.
  105. `xpack.security.automata.cache.ttl`::
  106. (<<static-cluster-setting,Static>>)
  107. The length of time to retain in an item in the automata cache (based on most
  108. recent usage).
  109. Defaults to `48h` (48 hours).
  110. [discrete]
  111. [[field-document-security-settings]]
  112. ==== Document and field level security settings
  113. You can set the following document and field level security
  114. settings in `elasticsearch.yml`. For more information, see
  115. <<field-and-document-access-control>>.
  116. `xpack.security.dls_fls.enabled`::
  117. (<<static-cluster-setting,Static>>)
  118. Set to `false` to prevent document and field level security
  119. from being configured. Defaults to `true`.
  120. `xpack.security.dls.bitset.cache.ttl`::
  121. (<<static-cluster-setting,Static>>)
  122. The time-to-live for cached `BitSet` entries for document level security.
  123. Document level security queries may depend on Lucene BitSet objects, and these are
  124. automatically cached to improve performance. Defaults to expire entries that are
  125. unused for `2h` (2 hours).
  126. `xpack.security.dls.bitset.cache.size`::
  127. (<<static-cluster-setting,Static>>)
  128. The maximum memory usage of cached `BitSet` entries for document level security.
  129. Document level security queries may depend on Lucene BitSet objects, and these are
  130. automatically cached to improve performance. Can be configured as a raw number
  131. of bytes (such as `200mb` or `1g`) or a percentage of the node's JVM heap
  132. memory (such as `5%`). When the default value is exceeded, the least recently
  133. used entries are evicted. Defaults to `10%` of the heap assigned to the node.
  134. [discrete]
  135. [[token-service-settings]]
  136. ==== Token service settings
  137. You can set the following token service settings in
  138. `elasticsearch.yml`.
  139. `xpack.security.authc.token.enabled`::
  140. (<<static-cluster-setting,Static>>)
  141. Set to `false` to disable the built-in token service. Defaults to `true` unless
  142. `xpack.security.http.ssl.enabled` is `false`. This prevents sniffing the token
  143. from a connection over plain http.
  144. `xpack.security.authc.token.timeout`::
  145. (<<static-cluster-setting,Static>>)
  146. The length of time that a token is valid for. By default this value is `20m` or
  147. 20 minutes. The maximum value is 1 hour.
  148. [discrete]
  149. [[api-key-service-settings]]
  150. ==== API key service settings
  151. You can set the following API key service settings in
  152. `elasticsearch.yml`.
  153. `xpack.security.authc.api_key.enabled`::
  154. (<<static-cluster-setting,Static>>)
  155. Set to `false` to disable the built-in API key service. Defaults to `true`.
  156. `xpack.security.authc.api_key.hashing.algorithm`::
  157. (<<static-cluster-setting,Static>>)
  158. Specifies the hashing algorithm that is used for securing API key credentials.
  159. See <<password-hashing-algorithms>>. Defaults to `pbkdf2`.
  160. `xpack.security.authc.api_key.cache.ttl`::
  161. (<<static-cluster-setting,Static>>)
  162. The time-to-live for cached API key entries. A API key id and a hash of its
  163. API key are cached for this period of time. Specify the time period using
  164. the standard {es} <<time-units,time units>>. Defaults to `1d`.
  165. `xpack.security.authc.api_key.cache.max_keys`::
  166. (<<static-cluster-setting,Static>>)
  167. The maximum number of API key entries that can live in the
  168. cache at any given time. Defaults to 10,000.
  169. `xpack.security.authc.api_key.cache.hash_algo`::
  170. (<<static-cluster-setting,Static>>, Expert)
  171. The hashing algorithm that is used for the
  172. in-memory cached API key credentials. For possible values, see <<cache-hash-algo>>.
  173. Defaults to `ssha256`.
  174. [discrete]
  175. [[security-domain-settings]]
  176. ==== Security domain settings
  177. // tag::security-domain-settings-description-tag[]
  178. You configure security domain settings in the `xpack.security.authc.domains`
  179. namespace in `elasticsearch.yml`.
  180. For example:
  181. [source, yaml]
  182. ------------------------------------------------------------
  183. xpack:
  184. security:
  185. authc:
  186. domains:
  187. my_domain: <1>
  188. realms: [ 'default_native', 'saml1' ] <2>
  189. ------------------------------------------------------------
  190. <1> Specifies the name of the security domain
  191. <2> Specifies the realms that belong to the domain
  192. // end::security-domain-settings-description-tag[]
  193. [discrete]
  194. [[realm-settings]]
  195. ==== Realm settings
  196. // tag::realm-settings-description-tag[]
  197. You configure realm settings in the `xpack.security.authc.realms`
  198. namespace in `elasticsearch.yml`.
  199. For example:
  200. [source,yaml]
  201. ----------------------------------------
  202. xpack.security.authc.realms:
  203. native.realm1: <1>
  204. order: 0 <2>
  205. ...
  206. ldap.realm2:
  207. order: 1
  208. ...
  209. active_directory.realm3:
  210. order: 2
  211. ...
  212. ...
  213. ----------------------------------------
  214. <1> Specifies the type of realm (for example, `native`, `ldap`,
  215. `active_directory`, `pki`, `file`, `kerberos`, `saml`) and the realm name. This
  216. information is required.
  217. <2> Specifies priority of a realm in the realm chain. This information
  218. is required.
  219. The valid settings vary depending on the realm type. For more
  220. information, see <<setting-up-authentication>>.
  221. // end::realm-settings-description-tag[]
  222. [discrete]
  223. [[ref-realm-settings]]
  224. ===== Settings valid for all realms
  225. // tag::realm-order-tag[]
  226. `order`::
  227. (<<static-cluster-setting,Static>>)
  228. The priority of the realm within the realm chain. Realms with a lower order are
  229. consulted first. The value must be unique for each realm. This setting is required.
  230. // end::realm-order-tag[]
  231. `enabled`::
  232. (<<static-cluster-setting,Static>>)
  233. Indicates whether a realm is enabled. You can use this setting to disable a
  234. realm without removing its configuration information. Defaults to `true`.
  235. [[ref-native-settings]]
  236. [discrete]
  237. ===== Native realm settings
  238. In addition to the <<ref-realm-settings,settings that are valid for all realms>>,
  239. you can specify the following optional settings:
  240. `cache.ttl`::
  241. (<<static-cluster-setting,Static>>)
  242. The time-to-live for cached user entries. A user and a hash of its
  243. credentials are cached for this period of time. Specify the time period using
  244. the standard {es} <<time-units,time units>>. Defaults to `20m`.
  245. `cache.max_users`::
  246. (<<static-cluster-setting,Static>>)
  247. The maximum number of user entries that can live in the
  248. cache at any given time. Defaults to 100,000.
  249. `cache.hash_algo`::
  250. (<<static-cluster-setting,Static>>, Expert)
  251. The hashing algorithm that is used for the
  252. in-memory cached user credentials. For possible values, see <<cache-hash-algo>>.
  253. Defaults to `ssha256`.
  254. `authentication.enabled`::
  255. (<<static-cluster-setting,Static>>)
  256. If set to `false`, disables authentication support in
  257. this realm, so that it only supports user lookups.
  258. (See the <<run-as-privilege,run as>> and
  259. <<authorization_realms,authorization realms>> features).
  260. Defaults to `true`.
  261. [[ref-users-settings]]
  262. [discrete]
  263. ===== File realm settings
  264. In addition to the <<ref-realm-settings,settings that are valid for all realms>>, you can specify
  265. the following settings:
  266. `cache.ttl`::
  267. (<<static-cluster-setting,Static>>)
  268. The time-to-live for cached user entries. A user and a hash of its credentials
  269. are cached for this configured period of time. Defaults to `20m`. Specify values
  270. using the standard {es} <<time-units,time units>>.
  271. Defaults to `20m`.
  272. `cache.max_users`::
  273. (<<static-cluster-setting,Static>>)
  274. The maximum number of user entries that can live in the cache at a given time.
  275. Defaults to 100,000.
  276. `cache.hash_algo`::
  277. (<<static-cluster-setting,Static>>, Expert)
  278. The hashing algorithm that is used for the in-memory cached
  279. user credentials. See <<cache-hash-algo>>. Defaults to `ssha256`.
  280. `authentication.enabled`::
  281. (<<static-cluster-setting,Static>>)
  282. If set to `false`, disables authentication support in
  283. this realm, so that it only supports user lookups.
  284. (See the <<run-as-privilege,run as>> and
  285. <<authorization_realms,authorization realms>> features).
  286. Defaults to `true`.
  287. [[ref-ldap-settings]]
  288. [discrete]
  289. ===== LDAP realm settings
  290. In addition to the <<ref-realm-settings>>, you can specify the following settings:
  291. `url`::
  292. (<<static-cluster-setting,Static>>)
  293. One or more LDAP URLs in the `ldap[s]://<server>:<port>` format. Required.
  294. +
  295. To provide multiple URLs, use a YAML array (`["ldap://server1:636", "ldap://server2:636"]`)
  296. or comma-separated string (`"ldap://server1:636, ldap://server2:636"`).
  297. +
  298. While both are supported, you can't mix the `ldap` and `ldaps` protocols.
  299. `load_balance.type`::
  300. (<<static-cluster-setting,Static>>)
  301. The behavior to use when there are multiple LDAP URLs defined. For supported
  302. values see <<load-balancing,load balancing and failover types>>.
  303. Defaults to `failover`.
  304. `load_balance.cache_ttl`::
  305. (<<static-cluster-setting,Static>>)
  306. When using `dns_failover` or `dns_round_robin` as the load balancing type,
  307. this setting controls the amount of time to cache DNS lookups. Defaults
  308. to `1h`.
  309. `bind_dn`::
  310. (<<static-cluster-setting,Static>>)
  311. The DN of the user that is used to bind to the LDAP and perform searches.
  312. Only applicable in user search mode.
  313. If not specified, an anonymous bind is attempted.
  314. Defaults to Empty. Due to its potential security impact, `bind_dn` is not
  315. exposed via the <<cluster-nodes-info,nodes info API>>.
  316. `bind_password`::
  317. (<<static-cluster-setting,Static>>)
  318. deprecated[6.3] Use `secure_bind_password` instead. The password for the user
  319. that is used to bind to the LDAP directory.
  320. Defaults to Empty. Due to its potential security impact, `bind_password` is not
  321. exposed via the <<cluster-nodes-info,nodes info API>>.
  322. `secure_bind_password`::
  323. (<<secure-settings,Secure>>)
  324. The password for the user that is used to bind to the LDAP directory.
  325. Defaults to Empty.
  326. `user_dn_templates`::
  327. (<<static-cluster-setting,Static>>)
  328. The DN template that replaces the user name with the string `{0}`.
  329. This setting is multivalued; you can specify multiple user contexts.
  330. Required to operate in user template mode. If `user_search.base_dn` is specified,
  331. this setting is not valid. For more information on
  332. the different modes, see <<ldap-realm>>.
  333. `authorization_realms`::
  334. (<<static-cluster-setting,Static>>)
  335. The names of the realms that should be consulted for delegated authorization.
  336. If this setting is used, then the LDAP realm does not perform role mapping and
  337. instead loads the user from the listed realms. The referenced realms are
  338. consulted in the order that they are defined in this list.
  339. See <<authorization_realms>>.
  340. +
  341. --
  342. NOTE: If any settings starting with `user_search` are specified, the
  343. `user_dn_templates` settings are ignored.
  344. --
  345. `user_group_attribute`::
  346. (<<static-cluster-setting,Static>>)
  347. Specifies the attribute to examine on the user for group membership.
  348. If any `group_search` settings are specified, this setting is ignored. Defaults
  349. to `memberOf`.
  350. `user_search.base_dn`::
  351. (<<static-cluster-setting,Static>>)
  352. Specifies a container DN to search for users. Required
  353. to operated in user search mode. If `user_dn_templates` is specified, this
  354. setting is not valid. For more information on
  355. the different modes, see <<ldap-realm>>.
  356. `user_search.scope`::
  357. (<<static-cluster-setting,Static>>)
  358. The scope of the user search. Valid values are `sub_tree`, `one_level` or
  359. `base`. `one_level` only searches objects directly contained within the
  360. `base_dn`. `sub_tree` searches all objects contained under `base_dn`.
  361. `base` specifies that the `base_dn` is the user object, and that it is
  362. the only user considered. Defaults to `sub_tree`.
  363. `user_search.filter`::
  364. (<<static-cluster-setting,Static>>)
  365. Specifies the filter used to search the directory in attempts to match
  366. an entry with the username provided by the user. Defaults to `(uid={0})`.
  367. `{0}` is substituted with the username provided when searching.
  368. `user_search.attribute`::
  369. (<<static-cluster-setting,Static>>)
  370. deprecated[5.6] Use `user_search.filter` instead.
  371. The attribute to match with the username sent with the request. Defaults to `uid`.
  372. `user_search.pool.enabled`::
  373. (<<static-cluster-setting,Static>>)
  374. Enables or disables connection pooling for user search. If set to `false`, a new
  375. connection is created for every search. The
  376. default is `true` when `bind_dn` is set.
  377. `user_search.pool.size`::
  378. (<<static-cluster-setting,Static>>)
  379. The maximum number of connections to the LDAP server to allow in the
  380. connection pool. Defaults to `20`.
  381. `user_search.pool.initial_size`::
  382. (<<static-cluster-setting,Static>>)
  383. The initial number of connections to create to the LDAP server on startup.
  384. Defaults to `0`. If the LDAP server is down, values greater than `0` could cause
  385. startup failures.
  386. `user_search.pool.health_check.enabled`::
  387. (<<static-cluster-setting,Static>>)
  388. Enables or disables a health check on LDAP connections in the connection
  389. pool. Connections are checked in the background at the specified interval.
  390. Defaults to `true`.
  391. `user_search.pool.health_check.dn`::
  392. (<<static-cluster-setting,Static>>)
  393. The distinguished name that is retrieved as part of the health check.
  394. Defaults to the value of `bind_dn` if present; if
  395. not, falls back to `user_search.base_dn`.
  396. `user_search.pool.health_check.interval`::
  397. (<<static-cluster-setting,Static>>)
  398. The interval to perform background checks of connections in the pool.
  399. Defaults to `60s`.
  400. `group_search.base_dn`::
  401. (<<static-cluster-setting,Static>>)
  402. The container DN to search for groups in which the user has membership. When
  403. this element is absent, {es} searches for the attribute specified by
  404. `user_group_attribute` set on the user in order to determine group membership.
  405. `group_search.scope`::
  406. (<<static-cluster-setting,Static>>)
  407. Specifies whether the group search should be `sub_tree`, `one_level` or
  408. `base`. `one_level` only searches objects directly contained within the
  409. `base_dn`. `sub_tree` searches all objects contained under `base_dn`.
  410. `base` specifies that the `base_dn` is a group object, and that it is the
  411. only group considered. Defaults to `sub_tree`.
  412. `group_search.filter`::
  413. (<<static-cluster-setting,Static>>)
  414. Specifies a filter to use to look up a group.
  415. When not set, the realm searches for `group`, `groupOfNames`, `groupOfUniqueNames`,
  416. or `posixGroup` with the attributes `member`, `memberOf`, or `memberUid`. Any
  417. instance of `{0}` in the filter is replaced by the user attribute defined in
  418. `group_search.user_attribute`.
  419. `group_search.user_attribute`::
  420. (<<static-cluster-setting,Static>>)
  421. Specifies the user attribute that is fetched and provided as a parameter to
  422. the filter. If not set, the user DN is passed into the filter. Defaults to Empty.
  423. `unmapped_groups_as_roles`::
  424. (<<static-cluster-setting,Static>>)
  425. If set to `true`, the names of any unmapped LDAP groups are used as role names
  426. and assigned to the user. A group is considered to be _unmapped_ if it is not
  427. referenced in a <<mapping-roles-file,role-mapping file>>. API-based
  428. role mappings are not considered. Defaults to `false`.
  429. `files.role_mapping`::
  430. (<<static-cluster-setting,Static>>)
  431. The <<security-files,location>> for the
  432. <<mapping-roles,YAML role mapping configuration file>>. Defaults to
  433. `ES_PATH_CONF/role_mapping.yml`.
  434. `follow_referrals`::
  435. (<<static-cluster-setting,Static>>)
  436. Specifies whether {es} should follow referrals returned
  437. by the LDAP server. Referrals are URLs returned by the server that are to be
  438. used to continue the LDAP operation (for example, search). Defaults to `true`.
  439. `metadata`::
  440. (<<static-cluster-setting,Static>>)
  441. A list of additional LDAP attributes that should be loaded from the
  442. LDAP server and stored in the authenticated user's metadata field.
  443. `timeout.tcp_connect`::
  444. (<<static-cluster-setting,Static>>)
  445. The TCP connect timeout period for establishing an LDAP connection.
  446. An `s` at the end indicates seconds, or `ms` indicates milliseconds.
  447. Defaults to `5s` (5 seconds ).
  448. `timeout.tcp_read`::
  449. (<<static-cluster-setting,Static>>)
  450. deprecated[7.7] The TCP read timeout period after establishing an LDAP
  451. connection. This is equivalent to and is deprecated in favor of
  452. `timeout.response` and they cannot be used simultaneously. An `s` at the end
  453. indicates seconds, or `ms` indicates milliseconds.
  454. `timeout.response`::
  455. (<<static-cluster-setting,Static>>)
  456. The time interval to wait for the response from the LDAP server. An `s` at the
  457. end indicates seconds, or `ms` indicates milliseconds. Defaults to the value of
  458. `timeout.ldap_search`.
  459. `timeout.ldap_search`::
  460. (<<static-cluster-setting,Static>>)
  461. The timeout period for an LDAP search. The value is specified in the request
  462. and is enforced by the receiving LDAP Server.
  463. An `s` at the end indicates seconds, or `ms` indicates milliseconds.
  464. Defaults to `5s` (5 seconds ).
  465. `ssl.key`::
  466. (<<static-cluster-setting,Static>>)
  467. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-key-pem]
  468. +
  469. If the LDAP server requires client authentication, it uses this file. You cannot
  470. use this setting and `ssl.keystore.path` at the same time.
  471. `ssl.key_passphrase`::
  472. (<<static-cluster-setting,Static>>)
  473. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-key-passphrase]
  474. `ssl.secure_key_passphrase`::
  475. (<<secure-settings,Secure>>)
  476. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-secure-key-passphrase]
  477. `ssl.certificate`::
  478. (<<static-cluster-setting,Static>>)
  479. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-certificate]
  480. +
  481. This certificate is presented to clients when they connect.
  482. `ssl.certificate_authorities`::
  483. (<<static-cluster-setting,Static>>)
  484. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-certificate-authorities]
  485. +
  486. You cannot use this setting and `ssl.truststore.path` at the same time.
  487. `ssl.keystore.path`::
  488. (<<static-cluster-setting,Static>>)
  489. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-path]
  490. +
  491. You cannot use this setting and `ssl.key` at the same time.
  492. `ssl.keystore.type`::
  493. (<<static-cluster-setting,Static>>)
  494. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-type-pkcs12]
  495. `ssl.keystore.password`::
  496. (<<static-cluster-setting,Static>>)
  497. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-password]
  498. `ssl.keystore.secure_password`::
  499. (<<secure-settings,Secure>>)
  500. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-secure-password]
  501. `ssl.keystore.key_password`::
  502. (<<static-cluster-setting,Static>>)
  503. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-key-password]
  504. `ssl.keystore.secure_key_password`::
  505. (<<static-cluster-setting,Static>>)
  506. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-secure-key-password]
  507. `ssl.truststore.path`::
  508. (<<static-cluster-setting,Static>>)
  509. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-truststore-path]
  510. +
  511. You cannot use this setting and `ssl.certificate_authorities` at the same time.
  512. `ssl.truststore.password`::
  513. (<<static-cluster-setting,Static>>)
  514. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-truststore-password]
  515. `ssl.truststore.secure_password`::
  516. (<<secure-settings,Secure>>)
  517. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-truststore-secure-password]
  518. `ssl.truststore.type`::
  519. (<<static-cluster-setting,Static>>)
  520. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-truststore-type]
  521. `ssl.verification_mode`::
  522. (<<static-cluster-setting,Static>>)
  523. Indicates the type of verification when using `ldaps` to protect against man
  524. in the middle attacks and certificate forgery.
  525. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-verification-mode-values]
  526. `ssl.supported_protocols`::
  527. (<<static-cluster-setting,Static>>)
  528. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-supported-protocols]
  529. `ssl.cipher_suites`::
  530. (<<static-cluster-setting,Static>>)
  531. Specifies the cipher suites that should be supported when
  532. communicating with the LDAP server.
  533. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-cipher-suites-values]
  534. //TBD: Can this be updated to using the Java 11 URL instead or does it have to stay java8?
  535. `cache.ttl`::
  536. (<<static-cluster-setting,Static>>)
  537. Specifies the time-to-live for cached user entries. A user and a hash of its
  538. credentials are cached for this period of time. Use the standard {es}
  539. <<time-units,time units>>. Defaults to `20m`.
  540. `cache.max_users`::
  541. (<<static-cluster-setting,Static>>)
  542. Specifies the maximum number of user entries that the cache can contain.
  543. Defaults to `100000`.
  544. `cache.hash_algo`::
  545. (<<static-cluster-setting,Static>>, Expert)
  546. Specifies the hashing algorithm that is used for the
  547. in-memory cached user credentials. See <<cache-hash-algo>>. Defaults to `ssha256`.
  548. `authentication.enabled`::
  549. (<<static-cluster-setting,Static>>)
  550. If set to `false`, disables authentication support in
  551. this realm, so that it only supports user lookups.
  552. (See the <<run-as-privilege,run as>> and
  553. <<authorization_realms,authorization realms>> features).
  554. Defaults to `true`.
  555. [[ref-ad-settings]]
  556. [discrete]
  557. ===== Active Directory realm settings
  558. In addition to the <<ref-realm-settings,settings that are valid for all realms>>,
  559. you can specify the following settings:
  560. `url`::
  561. (<<static-cluster-setting,Static>>)
  562. One or more LDAP URLs in the `ldap[s]://<server>:<port>` format. Defaults to
  563. `ldap://<domain_name>:389`. This setting is required when connecting using
  564. SSL/TLS or when using a custom port.
  565. +
  566. To provide multiple URLs, use a YAML array (`["ldap://server1:636", "ldap://server2:636"]`)
  567. or comma-separated string (`"ldap://server1:636, ldap://server2:636"`).
  568. +
  569. While both are supported, you can't mix the `ldap` and `ldaps` protocols.
  570. +
  571. If no URL is provided, {es} uses a default of `ldap://<domain_name>:389`. This
  572. default uses the `domain_name` setting value and assumes an unencrypted
  573. connection to port 389.
  574. `load_balance.type`::
  575. (<<static-cluster-setting,Static>>)
  576. The behavior to use when there are multiple LDAP URLs defined. For supported
  577. values see <<load-balancing,load balancing and failover types>>.
  578. Defaults to `failover`.
  579. `load_balance.cache_ttl`::
  580. (<<static-cluster-setting,Static>>)
  581. When using `dns_failover` or `dns_round_robin` as the load balancing type,
  582. this setting controls the amount of time to cache DNS lookups. Defaults
  583. to `1h`.
  584. `domain_name`::
  585. (<<static-cluster-setting,Static>>)
  586. The domain name of Active Directory. If the `url` and the `user_search.base_dn`
  587. settings are not specified, the cluster can derive those values from this
  588. setting. Required.
  589. `bind_dn`::
  590. (<<static-cluster-setting,Static>>)
  591. The DN of the user that is used to bind to Active Directory and perform searches.
  592. Defaults to Empty. Due to its potential security impact, `bind_dn` is not
  593. exposed via the <<cluster-nodes-info,nodes info API>>.
  594. `bind_password`::
  595. (<<static-cluster-setting,Static>>)
  596. deprecated[6.3] Use `secure_bind_password` instead. The password for the user
  597. that is used to bind to Active Directory. Defaults to Empty. Due to its
  598. potential security impact, `bind_password` is not exposed via the
  599. <<cluster-nodes-info,nodes info API>>.
  600. `secure_bind_password`::
  601. (<<secure-settings,Secure>>)
  602. The password for the user that is used to bind to Active Directory.
  603. Defaults to Empty.
  604. `unmapped_groups_as_roles`::
  605. (<<static-cluster-setting,Static>>)
  606. If set to `true`, the names of any unmapped Active Directory groups are used as
  607. role names and assigned to the user. A group is considered _unmapped_ when it
  608. is not referenced in any role-mapping files. API-based role mappings are not
  609. considered. Defaults to `false`.
  610. `files.role_mapping`::
  611. (<<static-cluster-setting,Static>>)
  612. The <<security-files,location>> for the YAML
  613. role mapping configuration file. Defaults to `ES_PATH_CONF/role_mapping.yml`.
  614. `user_search.base_dn`::
  615. (<<static-cluster-setting,Static>>)
  616. The context to search for a user. Defaults to the root
  617. of the Active Directory domain.
  618. `user_search.scope`::
  619. (<<static-cluster-setting,Static>>)
  620. Specifies whether the user search should be `sub_tree`, `one_level` or `base`.
  621. `one_level` only searches users directly contained within the `base_dn`.
  622. `sub_tree` searches all objects contained under `base_dn`. `base`
  623. specifies that the `base_dn` is a user object, and that it is the
  624. only user considered. Defaults to `sub_tree`.
  625. `user_search.filter`::
  626. (<<static-cluster-setting,Static>>)
  627. Specifies a filter to use to lookup a user given a username. The default
  628. filter looks up `user` objects with either `sAMAccountName` or
  629. `userPrincipalName`. If specified, this must be a valid LDAP user search filter.
  630. For example `(&(objectClass=user)(sAMAccountName={0}))`. For more information,
  631. see
  632. https://msdn.microsoft.com/en-us/library/aa746475(v=vs.85).aspx[Search Filter Syntax].
  633. `user_search.upn_filter`::
  634. (<<static-cluster-setting,Static>>)
  635. Specifies a filter to use to lookup a user given a user principal name.
  636. The default filter looks up `user` objects with
  637. a matching `userPrincipalName`. If specified, this
  638. must be a valid LDAP user search filter. For example,
  639. `(&(objectClass=user)(userPrincipalName={1}))`. `{1}` is the full user principal name
  640. provided by the user. For more information, see
  641. https://msdn.microsoft.com/en-us/library/aa746475(v=vs.85).aspx[Search Filter Syntax].
  642. `user_search.down_level_filter`::
  643. (<<static-cluster-setting,Static>>)
  644. Specifies a filter to use to lookup a user given a down level logon name
  645. (DOMAIN\user). The default filter looks up `user` objects with a matching
  646. `sAMAccountName` in the domain provided. If specified, this
  647. must be a valid LDAP user search filter. For example,
  648. `(&(objectClass=user)(sAMAccountName={0}))`. For more information, see
  649. https://msdn.microsoft.com/en-us/library/aa746475(v=vs.85).aspx[Search Filter Syntax].
  650. `user_search.pool.enabled`::
  651. (<<static-cluster-setting,Static>>)
  652. Enables or disables connection pooling for user search. When
  653. disabled a new connection is created for every search. The
  654. default is `true` when `bind_dn` is provided.
  655. `user_search.pool.size`::
  656. (<<static-cluster-setting,Static>>)
  657. The maximum number of connections to the Active Directory server to allow in the
  658. connection pool. Defaults to `20`.
  659. `user_search.pool.initial_size`::
  660. (<<static-cluster-setting,Static>>)
  661. The initial number of connections to create to the Active Directory server on startup.
  662. Defaults to `0`. If the LDAP server is down, values greater than 0
  663. could cause startup failures.
  664. `user_search.pool.health_check.enabled`::
  665. (<<static-cluster-setting,Static>>)
  666. Enables or disables a health check on Active Directory connections in the connection
  667. pool. Connections are checked in the background at the specified interval.
  668. Defaults to `true`.
  669. `user_search.pool.health_check.dn`::
  670. (<<static-cluster-setting,Static>>)
  671. The distinguished name to be retrieved as part of the health check.
  672. Defaults to the value of `bind_dn` if that setting is present. Otherwise, it
  673. defaults to the value of the `user_search.base_dn` setting.
  674. `user_search.pool.health_check.interval`::
  675. (<<static-cluster-setting,Static>>)
  676. The interval to perform background checks of connections in the pool.
  677. Defaults to `60s`.
  678. `group_search.base_dn`::
  679. (<<static-cluster-setting,Static>>)
  680. The context to search for groups in which the user has membership. Defaults
  681. to the root of the Active Directory domain.
  682. `group_search.scope`::
  683. (<<static-cluster-setting,Static>>)
  684. Specifies whether the group search should be `sub_tree`, `one_level` or
  685. `base`. `one_level` searches for groups directly contained within the
  686. `base_dn`. `sub_tree` searches all objects contained under `base_dn`.
  687. `base` specifies that the `base_dn` is a group object, and that it is
  688. the only group considered. Defaults to `sub_tree`.
  689. `metadata`::
  690. (<<static-cluster-setting,Static>>)
  691. A list of additional LDAP attributes that should be loaded from the
  692. LDAP server and stored in the authenticated user's metadata field.
  693. `timeout.tcp_connect`::
  694. (<<static-cluster-setting,Static>>)
  695. The TCP connect timeout period for establishing an LDAP connection.
  696. An `s` at the end indicates seconds, or `ms` indicates milliseconds.
  697. Defaults to `5s` (5 seconds ).
  698. `timeout.tcp_read`::
  699. (<<static-cluster-setting,Static>>)
  700. deprecated[7.7] The TCP read timeout period after establishing an LDAP
  701. connection. This is equivalent to and is deprecated in favor of
  702. `timeout.response` and they cannot be used simultaneously. An `s` at the end
  703. indicates seconds, or `ms` indicates milliseconds. Defaults to the value of
  704. `timeout.ldap_search`.
  705. `timeout.response`::
  706. (<<static-cluster-setting,Static>>)
  707. The time interval to wait for the response from the AD server. An `s` at the
  708. end indicates seconds, or `ms` indicates milliseconds. Defaults to the value of
  709. `timeout.ldap_search`.
  710. `timeout.ldap_search`::
  711. (<<static-cluster-setting,Static>>)
  712. The timeout period for an LDAP search. The value is specified in the request
  713. and is enforced by the receiving LDAP Server.
  714. An `s` at the end indicates seconds, or `ms` indicates milliseconds.
  715. Defaults to `5s` (5 seconds ).
  716. `ssl.certificate`::
  717. (<<static-cluster-setting,Static>>)
  718. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-certificate]
  719. +
  720. This certificate is presented to clients when they connect.
  721. `ssl.certificate_authorities`::
  722. (<<static-cluster-setting,Static>>)
  723. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-certificate-authorities]
  724. +
  725. You cannot use this setting and `ssl.truststore.path` at the same time.
  726. `ssl.key`::
  727. (<<static-cluster-setting,Static>>)
  728. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-key-pem]
  729. +
  730. If the Active Directory server requires client authentication, it uses this file.
  731. You cannot use this setting and `ssl.keystore.path` at the same time.
  732. `ssl.key_passphrase`::
  733. (<<static-cluster-setting,Static>>)
  734. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-key-passphrase]
  735. `ssl.secure_key_passphrase`::
  736. (<<secure-settings,Secure>>)
  737. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-secure-key-passphrase]
  738. `ssl.keystore.key_password`::
  739. (<<static-cluster-setting,Static>>)
  740. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-key-password]
  741. `ssl.keystore.secure_key_password`::
  742. (<<secure-settings,Secure>>)
  743. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-secure-key-password]
  744. `ssl.keystore.password`::
  745. (<<static-cluster-setting,Static>>)
  746. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-password]
  747. `ssl.secure_keystore.password`::
  748. (<<secure-settings,Secure>>)
  749. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-secure-password]
  750. //TBD: Why/how is this different than `ssl.keystore.secure_password`?
  751. `ssl.keystore.path`::
  752. (<<static-cluster-setting,Static>>)
  753. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-path]
  754. +
  755. You cannot use this setting and `ssl.key` at the same time.
  756. `ssl.keystore.type`::
  757. (<<static-cluster-setting,Static>>)
  758. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-type-pkcs12]
  759. `ssl.truststore.password`::
  760. (<<static-cluster-setting,Static>>)
  761. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-truststore-password]
  762. `ssl.truststore.secure_password`::
  763. (<<secure-settings,Secure>>)
  764. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-truststore-secure-password]
  765. `ssl.truststore.path`::
  766. (<<static-cluster-setting,Static>>)
  767. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-truststore-path]
  768. +
  769. You cannot use this setting and `ssl.certificate_authorities` at the same time.
  770. `ssl.truststore.type`::
  771. (<<static-cluster-setting,Static>>)
  772. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-truststore-type]
  773. `ssl.verification_mode`::
  774. (<<static-cluster-setting,Static>>)
  775. Indicates the type of verification when using `ldaps` to protect against man
  776. in the middle attacks and certificate forgery.
  777. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-verification-mode-values]
  778. `ssl.supported_protocols`::
  779. (<<static-cluster-setting,Static>>)
  780. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-supported-protocols]
  781. `ssl.cipher_suites`::
  782. (<<static-cluster-setting,Static>>)
  783. Specifies the cipher suites that should be supported when
  784. communicating with the Active Directory server.
  785. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-cipher-suites-values]
  786. //TBD: Can this be updated to using the Java 11 URL instead or does it have to stay java8?
  787. `cache.ttl`::
  788. (<<static-cluster-setting,Static>>)
  789. Specifies the time-to-live for cached user entries. A user and a hash of its
  790. credentials are cached for this configured period of time. Use the
  791. standard Elasticsearch <<time-units,time units>>).
  792. Defaults to `20m`.
  793. `cache.max_users`::
  794. (<<static-cluster-setting,Static>>)
  795. Specifies the maximum number of user entries that the cache can contain.
  796. Defaults to `100000`.
  797. `cache.hash_algo`::
  798. (<<static-cluster-setting,Static>>, Expert)
  799. Specifies the hashing algorithm that is used for
  800. the in-memory cached user credentials. See <<cache-hash-algo>>. Defaults to `ssha256`.
  801. `authentication.enabled`::
  802. (<<static-cluster-setting,Static>>)
  803. If set to `false`, disables authentication support in
  804. this realm, so that it only supports user lookups.
  805. (See the <<run-as-privilege,run as>> and
  806. <<authorization_realms,authorization realms>> features).
  807. Defaults to `true`.
  808. `follow_referrals`::
  809. (<<static-cluster-setting,Static>>)
  810. If set to `true`, {es} follows referrals returned by the LDAP server.
  811. Referrals are URLs returned by the server that are to be used to continue the
  812. LDAP operation (such as `search`). Defaults to `true`.
  813. [[ref-pki-settings]]
  814. [discrete]
  815. ===== PKI realm settings
  816. In addition to the <<ref-realm-settings,settings that are valid for all realms>>, you can specify
  817. the following settings:
  818. `username_pattern`::
  819. (<<static-cluster-setting,Static>>)
  820. The regular expression pattern used to extract the username from the
  821. certificate DN. The first match group is the used as the username.
  822. Defaults to `CN=(.*?)(?:,\|$)`.
  823. `certificate_authorities`::
  824. (<<static-cluster-setting,Static>>)
  825. List of paths to the PEM certificate files that should be used to authenticate a
  826. user's certificate as trusted. Defaults to the trusted certificates configured
  827. for SSL. This setting cannot be used with `truststore.path`.
  828. `truststore.algorithm`::
  829. (<<static-cluster-setting,Static>>)
  830. Algorithm for the truststore. Defaults to `SunX509`.
  831. `truststore.password`::
  832. (<<static-cluster-setting,Static>>)
  833. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-truststore-password]
  834. If `truststore.path` is set, this setting is required.
  835. `truststore.secure_password`::
  836. (<<secure-settings,Secure>>)
  837. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-truststore-secure-password]
  838. `truststore.path`::
  839. (<<static-cluster-setting,Static>>)
  840. The path of a truststore to use. Defaults to the trusted certificates configured
  841. for SSL. This setting cannot be used with `certificate_authorities`.
  842. `files.role_mapping`::
  843. (<<static-cluster-setting,Static>>)
  844. Specifies the <<security-files,location>> of the
  845. <<mapping-roles,YAML role mapping configuration file>>.
  846. Defaults to `ES_PATH_CONF/role_mapping.yml`.
  847. `authorization_realms`::
  848. (<<static-cluster-setting,Static>>)
  849. The names of the realms that should be consulted for delegated authorization.
  850. If this setting is used, then the PKI realm does not perform role mapping and
  851. instead loads the user from the listed realms.
  852. See <<authorization_realms>>.
  853. `cache.ttl`::
  854. (<<static-cluster-setting,Static>>)
  855. Specifies the time-to-live for cached user entries. A user and a hash of its
  856. credentials are cached for this period of time. Use the
  857. standard {es} <<time-units,time units>>).
  858. Defaults to `20m`.
  859. `cache.max_users`::
  860. (<<static-cluster-setting,Static>>)
  861. Specifies the maximum number of user entries that the cache can contain.
  862. Defaults to `100000`.
  863. `delegation.enabled`::
  864. (<<static-cluster-setting,Static>>)
  865. Generally, in order for the clients to be authenticated by the PKI realm they
  866. must connect directly to {es}. That is, they must not pass through proxies
  867. which terminate the TLS connection. In order to allow for a *trusted* and
  868. *smart* proxy, such as Kibana, to sit before {es} and terminate TLS
  869. connections, but still allow clients to be authenticated on {es} by this realm,
  870. you need to toggle this to `true`. Defaults to `false`. If delegation is
  871. enabled, then either `truststore.path` or `certificate_authorities` setting
  872. must be defined. For more details, see <<pki-realm-for-proxied-clients,
  873. Configuring authentication delegation for PKI realms>>.
  874. [[ref-saml-settings]]
  875. [discrete]
  876. ===== SAML realm settings
  877. // tag::saml-description-tag[]
  878. In addition to the <<ref-realm-settings,settings that are valid for all realms>>, you can specify
  879. the following settings.
  880. // end::saml-description-tag[]
  881. // tag::saml-idp-entity-id-tag[]
  882. `idp.entity_id` {ess-icon}::
  883. (<<static-cluster-setting,Static>>)
  884. The Entity ID of the SAML Identity Provider. An Entity ID is a URI with a
  885. maximum length of 1024 characters. It can be a URL (https://idp.example.com/) or
  886. a URN (`urn:example.com:idp`) and can be found in the configuration or the SAML
  887. metadata of the Identity Provider.
  888. // end::saml-idp-entity-id-tag[]
  889. // tag::saml-idp-metadata-path-tag[]
  890. `idp.metadata.path` {ess-icon}::
  891. (<<static-cluster-setting,Static>>)
  892. The path _(recommended)_ or URL to a SAML 2.0 metadata file describing the
  893. capabilities and configuration of the Identity Provider.
  894. If a path is provided, then it is resolved relative to the {es} config
  895. directory.
  896. If a URL is provided, then it must be either a `file` URL or a `https` URL.
  897. {es} automatically polls this metadata resource and reloads
  898. the IdP configuration when changes are detected.
  899. File based resources are polled at a frequency determined by the global {es}
  900. `resource.reload.interval.high` setting, which defaults to 5 seconds.
  901. HTTPS resources are polled at a frequency determined by the realm's
  902. `idp.metadata.http.refresh` setting.
  903. // end::saml-idp-metadata-path-tag[]
  904. // tag::saml-idp-metadata-http-refresh-tag[]
  905. `idp.metadata.http.refresh` {ess-icon}::
  906. (<<static-cluster-setting,Static>>)
  907. Controls the frequency with which `https` metadata is checked for changes.
  908. Defaults to `1h` (1 hour).
  909. // end::saml-idp-metadata-http-refresh-tag[]
  910. // tag::saml-idp-use-single-logout-tag[]
  911. `idp.use_single_logout` {ess-icon}::
  912. (<<static-cluster-setting,Static>>)
  913. Indicates whether to utilise the Identity Provider's Single Logout service
  914. (if one exists in the IdP metadata file).
  915. Defaults to `true`.
  916. // end::saml-idp-use-single-logout-tag[]
  917. // tag::saml-sp-entity-id-tag[]
  918. `sp.entity_id` {ess-icon}::
  919. (<<static-cluster-setting,Static>>)
  920. The Entity ID to use for this SAML Service Provider. This should be entered as a
  921. URI. We recommend that you use the base URL of your Kibana instance. For example,
  922. `https://kibana.example.com/`.
  923. // end::saml-sp-entity-id-tag[]
  924. // tag::saml-sp-acs-tag[]
  925. `sp.acs` {ess-icon}::
  926. (<<static-cluster-setting,Static>>)
  927. The URL of the Assertion Consumer Service within {kib}. Typically this is the
  928. "api/security/saml/callback" endpoint of your Kibana server. For example,
  929. `https://kibana.example.com/api/security/saml/callback`.
  930. // end::saml-sp-acs-tag[]
  931. // tag::saml-sp-logout-tag[]
  932. `sp.logout` {ess-icon}::
  933. (<<static-cluster-setting,Static>>)
  934. The URL of the Single Logout service within {kib}. Typically this is the
  935. "logout" endpoint of your Kibana server. For example,
  936. `https://kibana.example.com/logout`.
  937. // end::saml-sp-logout-tag[]
  938. // tag::saml-attributes-principal-tag[]
  939. `attributes.principal` {ess-icon}::
  940. (<<static-cluster-setting,Static>>)
  941. The Name of the SAML attribute that contains the user's principal (username).
  942. // end::saml-attributes-principal-tag[]
  943. // tag::saml-attributes-groups-tag[]
  944. `attributes.groups` {ess-icon}::
  945. (<<static-cluster-setting,Static>>)
  946. The Name of the SAML attribute that contains the user's groups.
  947. // end::saml-attributes-groups-tag[]
  948. // tag::saml-attributes-name-tag[]
  949. `attributes.name` {ess-icon}::
  950. (<<static-cluster-setting,Static>>)
  951. The Name of the SAML attribute that contains the user's full name.
  952. // end::saml-attributes-name-tag[]
  953. // tag::saml-attributes-mail-tag[]
  954. `attributes.mail` {ess-icon}::
  955. (<<static-cluster-setting,Static>>)
  956. The Name of the SAML attribute that contains the user's email address.
  957. // end::saml-attributes-mail-tag[]
  958. // tag::saml-attributes-dn-tag[]
  959. `attributes.dn` {ess-icon}::
  960. (<<static-cluster-setting,Static>>)
  961. The Name of the SAML attribute that contains the user's X.50
  962. _Distinguished Name_.
  963. // end::saml-attributes-dn-tag[]
  964. // tag::saml-attributes-patterns-principal-tag[]
  965. `attribute_patterns.principal` {ess-icon}::
  966. (<<static-cluster-setting,Static>>)
  967. A Java regular expression that is matched against the SAML attribute specified
  968. by `attributes.pattern` before it is applied to the user's _principal_ property.
  969. The attribute value must match the pattern and the value of the first
  970. _capturing group_ is used as the principal. For example, `^([^@]+)@example\\.com$`
  971. matches email addresses from the "example.com" domain and uses the local-part as
  972. the principal.
  973. // end::saml-attributes-patterns-principal-tag[]
  974. // tag::saml-attributes-patterns-groups-tag[]
  975. `attribute_patterns.groups` {ess-icon}::
  976. (<<static-cluster-setting,Static>>)
  977. As per `attribute_patterns.principal`, but for the _group_ property.
  978. // end::saml-attributes-patterns-groups-tag[]
  979. // tag::saml-attributes-patterns-name-tag[]
  980. `attribute_patterns.name` {ess-icon}::
  981. (<<static-cluster-setting,Static>>)
  982. As per `attribute_patterns.principal`, but for the _name_ property.
  983. // end::saml-attributes-patterns-name-tag[]
  984. // tag::saml-attributes-patterns-mail-tag[]
  985. `attribute_patterns.mail` {ess-icon}::
  986. (<<static-cluster-setting,Static>>)
  987. As per `attribute_patterns.principal`, but for the _mail_ property.
  988. // end::saml-attributes-patterns-mail-tag[]
  989. // tag::saml-attributes-patterns-dn-tag[]
  990. `attribute_patterns.dn` {ess-icon}::
  991. (<<static-cluster-setting,Static>>)
  992. As per `attribute_patterns.principal`, but for the _dn_ property.
  993. // end::saml-attributes-patterns-dn-tag[]
  994. // tag::saml-nameid-format-tag[]
  995. `nameid_format` {ess-icon}::
  996. (<<static-cluster-setting,Static>>)
  997. The NameID format that should be requested when asking the IdP to authenticate
  998. the current user. The default is to not include the `nameid_format` attribute.
  999. // end::saml-nameid-format-tag[]
  1000. // tag::saml-nameid-allow-create-tag[]
  1001. `nameid.allow_create` {ess-icon}::
  1002. (<<static-cluster-setting,Static>>)
  1003. The value of the `AllowCreate` attribute of the
  1004. `NameIdPolicy` element in an authentication request. The default value is false.
  1005. // end::saml-nameid-allow-create-tag[]
  1006. // tag::saml-nameid-sp-qualifier-tag[]
  1007. `nameid.sp_qualifier` {ess-icon}::
  1008. (<<static-cluster-setting,Static>>)
  1009. The value of the `SPNameQualifier` attribute of the
  1010. `NameIdPolicy` element in an authentication request. The default is to not
  1011. include the `SPNameQualifier` attribute.
  1012. // end::saml-nameid-sp-qualifier-tag[]
  1013. // tag::saml-force-authn-tag[]
  1014. `force_authn` {ess-icon}::
  1015. (<<static-cluster-setting,Static>>)
  1016. Specifies whether to set the `ForceAuthn` attribute when requesting that the IdP
  1017. authenticate the current user. If set to `true`, the IdP is required to verify
  1018. the user’s identity, irrespective of any existing sessions they might have.
  1019. Defaults to `false`.
  1020. // end::saml-force-authn-tag[]
  1021. // tag::saml-populate-user-metadata-tag[]
  1022. `populate_user_metadata` {ess-icon}::
  1023. (<<static-cluster-setting,Static>>)
  1024. Specifies whether to populate the {es} user's metadata with the values that are
  1025. provided by the SAML attributes. Defaults to `true`.
  1026. // end::saml-populate-user-metadata-tag[]
  1027. `authorization_realms`::
  1028. (<<static-cluster-setting,Static>>)
  1029. The names of the realms that should be consulted for delegated authorization.
  1030. If this setting is used, then the SAML realm does not perform role mapping and
  1031. instead loads the user from the listed realms.
  1032. See <<authorization_realms>>.
  1033. // tag::saml-allowed-clock-skew-tag[]
  1034. `allowed_clock_skew` {ess-icon}::
  1035. (<<static-cluster-setting,Static>>)
  1036. The maximum amount of skew that can be tolerated between the IdP's clock and the
  1037. {es} node's clock.
  1038. Defaults to `3m` (3 minutes).
  1039. // end::saml-allowed-clock-skew-tag[]
  1040. // tag::saml-req-authn-context-tag[]
  1041. `req_authn_context_class_ref` {ess-icon}::
  1042. (<<static-cluster-setting,Static>>)
  1043. A comma separated list of Authentication Context Class Reference values to be
  1044. included in the Requested Authentication Context when requesting the IdP to
  1045. authenticate the current user. The Authentication Context of the corresponding
  1046. authentication response should contain at least one of the requested values.
  1047. +
  1048. For more information, see
  1049. <<req-authn-context>>.
  1050. // end::saml-req-authn-context-tag[]
  1051. [discrete]
  1052. [[ref-saml-signing-settings]]
  1053. ===== SAML realm signing settings
  1054. // tag::saml-signing-description-tag[]
  1055. If a signing key is configured (that is, either `signing.key` or
  1056. `signing.keystore.path` is set), then {es} signs outgoing SAML messages.
  1057. Signing can be configured using the following settings:
  1058. // end::saml-signing-description-tag[]
  1059. // tag::saml-signing-messages-tag[]
  1060. `signing.saml_messages` {ess-icon}::
  1061. (<<static-cluster-setting,Static>>)
  1062. A list of SAML message types that should be signed or `*` to sign all messages.
  1063. Each element in the list should be the local name of a SAML XML Element.
  1064. Supported element types are `AuthnRequest`, `LogoutRequest` and `LogoutResponse`.
  1065. Only valid if `signing.key` or `signing.keystore.path` is also specified.
  1066. Defaults to `*`.
  1067. // end::saml-signing-messages-tag[]
  1068. // tag::saml-signing-key-tag[]
  1069. `signing.key` {ess-icon}::
  1070. (<<static-cluster-setting,Static>>)
  1071. Specifies the path to the PEM encoded private key to use for SAML message signing.
  1072. `signing.key` and `signing.keystore.path` cannot be used at the same time.
  1073. // end::saml-signing-key-tag[]
  1074. `signing.secure_key_passphrase` {ess-icon}::
  1075. (<<secure-settings,Secure>>)
  1076. Specifies the passphrase to decrypt the PEM encoded private key (`signing.key`)
  1077. if it is encrypted.
  1078. // tag::saml-signing-certificate-tag[]
  1079. `signing.certificate` {ess-icon}::
  1080. (<<static-cluster-setting,Static>>)
  1081. Specifies the path to the PEM encoded certificate (or certificate chain) that
  1082. corresponds to the `signing.key`. This certificate must also be included in the
  1083. Service Provider metadata or manually configured within the IdP to allow for
  1084. signature validation. This setting can only be used if `signing.key` is set.
  1085. // end::saml-signing-certificate-tag[]
  1086. // tag::saml-signing-keystore-path-tag[]
  1087. `signing.keystore.path` {ess-icon}::
  1088. (<<static-cluster-setting,Static>>)
  1089. The path to the keystore that contains a private key and certificate. It must be
  1090. either a Java keystore (jks) or a PKCS#12 file. You cannot use this setting and
  1091. `signing.key` at the same time.
  1092. // end::saml-signing-keystore-path-tag[]
  1093. // tag::saml-signing-keystore-type-tag[]
  1094. `signing.keystore.type` {ess-icon}::
  1095. (<<static-cluster-setting,Static>>)
  1096. The type of the keystore in `signing.keystore.path`.
  1097. Must be either `jks` or `PKCS12`. If the keystore path ends in ".p12", ".pfx",
  1098. or "pkcs12", this setting defaults to `PKCS12`. Otherwise, it defaults to `jks`.
  1099. // end::saml-signing-keystore-type-tag[]
  1100. // tag::saml-signing-keystore-alias-tag[]
  1101. `signing.keystore.alias` {ess-icon}::
  1102. (<<static-cluster-setting,Static>>)
  1103. Specifies the alias of the key within the keystore that should be
  1104. used for SAML message signing. If the keystore contains more than one private
  1105. key, this setting must be specified.
  1106. // end::saml-signing-keystore-alias-tag[]
  1107. `signing.keystore.secure_password` {ess-icon}::
  1108. (<<secure-settings,Secure>>)
  1109. The password to the keystore in `signing.keystore.path`.
  1110. `signing.keystore.secure_key_password` {ess-icon}::
  1111. (<<secure-settings,Secure>>)
  1112. The password for the key in the keystore (`signing.keystore.path`).
  1113. Defaults to the keystore password.
  1114. [discrete]
  1115. [[ref-saml-encryption-settings]]
  1116. ===== SAML realm encryption settings
  1117. // tag::saml-encryption-description-tag[]
  1118. If an encryption key is configured (that is, either `encryption.key` or
  1119. `encryption.keystore.path` is set), then {es} publishes an encryption
  1120. certificate when generating metadata and attempts to decrypt incoming SAML
  1121. content. Encryption can be configured using the following settings:
  1122. // end::saml-encryption-description-tag[]
  1123. // tag::saml-encryption-key-tag[]
  1124. `encryption.key` {ess-icon}::
  1125. (<<static-cluster-setting,Static>>)
  1126. Specifies the path to the PEM encoded private key to use for SAML message
  1127. decryption.
  1128. `encryption.key` and `encryption.keystore.path` cannot be used at the same time.
  1129. // end::saml-encryption-key-tag[]
  1130. `encryption.secure_key_passphrase`::
  1131. (<<secure-settings,Secure>>)
  1132. Specifies the passphrase to decrypt the PEM encoded private key
  1133. (`encryption.key`) if it is encrypted.
  1134. // tag::saml-encryption-certificate-tag[]
  1135. `encryption.certificate` {ess-icon}::
  1136. (<<static-cluster-setting,Static>>)
  1137. Specifies the path to the PEM encoded certificate (or certificate chain) that is
  1138. associated with the `encryption.key`. This certificate must also be included in
  1139. the Service Provider metadata or manually configured within the IdP to enable
  1140. message encryption. This setting can be used only if `encryption.key` is set.
  1141. // end::saml-encryption-certificate-tag[]
  1142. // tag::saml-encryption-keystore-path-tag[]
  1143. `encryption.keystore.path` {ess-icon}::
  1144. (<<static-cluster-setting,Static>>)
  1145. The path to the keystore that contains a private key and certificate. It must be
  1146. either a Java keystore (jks) or a PKCS#12 file. You cannot use this setting and
  1147. `encryption.key` at the same time.
  1148. // end::saml-encryption-keystore-path-tag[]
  1149. // tag::saml-encryption-keystore-type-tag[]
  1150. `encryption.keystore.type` {ess-icon}::
  1151. (<<static-cluster-setting,Static>>)
  1152. The type of the keystore (`encryption.keystore.path`).
  1153. Must be either `jks` or `PKCS12`. If the keystore path ends in ".p12", ".pfx",
  1154. or "pkcs12", this setting defaults to `PKCS12`. Otherwise, it defaults to `jks`.
  1155. // end::saml-encryption-keystore-type-tag[]
  1156. // tag::saml-encryption-keystore-alias-tag[]
  1157. `encryption.keystore.alias` {ess-icon}::
  1158. (<<static-cluster-setting,Static>>)
  1159. Specifies the alias of the key within the keystore (`encryption.keystore.path`)
  1160. that should be used for SAML message decryption. If not specified, all compatible
  1161. key pairs from the keystore are considered as candidate keys for decryption.
  1162. // end::saml-encryption-keystore-alias-tag[]
  1163. `encryption.keystore.secure_password`::
  1164. (<<secure-settings,Secure>>)
  1165. The password to the keystore (`encryption.keystore.path`).
  1166. `encryption.keystore.secure_key_password`::
  1167. (<<secure-settings,Secure>>)
  1168. The password for the key in the keystore (`encryption.keystore.path`). Only a
  1169. single password is supported. If you are using multiple decryption keys,
  1170. they cannot have individual passwords.
  1171. [discrete]
  1172. [[ref-saml-ssl-settings]]
  1173. ===== SAML realm SSL settings
  1174. // tag::saml-ssl-description-tag[]
  1175. If you are loading the IdP metadata over SSL/TLS (that is, `idp.metadata.path`
  1176. is a URL using the `https` protocol), the following settings can be used to
  1177. configure SSL.
  1178. NOTE: These settings are not used for any purpose other than loading metadata
  1179. over https.
  1180. // end::saml-ssl-description-tag[]
  1181. // tag::saml-ssl-key-tag[]
  1182. `ssl.key` {ess-icon}::
  1183. (<<static-cluster-setting,Static>>)
  1184. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-key-pem]
  1185. // end::saml-ssl-key-tag[]
  1186. // tag::saml-ssl-key-passphrase-tag[]
  1187. `ssl.key_passphrase` {ess-icon}::
  1188. (<<static-cluster-setting,Static>>)
  1189. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-key-passphrase]
  1190. // end::saml-ssl-key-passphrase-tag[]
  1191. `ssl.secure_key_passphrase`::
  1192. (<<secure-settings,Secure>>)
  1193. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-secure-key-passphrase]
  1194. +
  1195. You cannot use this setting and `ssl.key_passphrase` at the same time.
  1196. // tag::saml-ssl-certificate-tag[]
  1197. `ssl.certificate` {ess-icon}::
  1198. (<<static-cluster-setting,Static>>)
  1199. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-certificate]
  1200. // end::saml-ssl-certificate-tag[]
  1201. // tag::saml-ssl-certificate-authorities-tag[]
  1202. `ssl.certificate_authorities` {ess-icon}::
  1203. (<<static-cluster-setting,Static>>)
  1204. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-certificate-authorities]
  1205. // end::saml-ssl-certificate-authorities-tag[]
  1206. // tag::saml-ssl-keystore-path-tag[]
  1207. `ssl.keystore.path` {ess-icon}::
  1208. (<<static-cluster-setting,Static>>)
  1209. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-path]
  1210. // end::saml-ssl-keystore-path-tag[]
  1211. // tag::saml-ssl-keystore-type[]
  1212. `ssl.keystore.type` {ess-icon}::
  1213. (<<static-cluster-setting,Static>>)
  1214. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-type-pkcs12]
  1215. // end::saml-ssl-keystore-type[]
  1216. // tag::saml-ssl-keystore-password-tag[]
  1217. `ssl.keystore.password` {ess-icon}::
  1218. (<<static-cluster-setting,Static>>)
  1219. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-password]
  1220. // end::saml-ssl-keystore-password-tag[]
  1221. `ssl.keystore.secure_password`::
  1222. (<<secure-settings,Secure>>)
  1223. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-secure-password]
  1224. +
  1225. You cannot use this setting and `ssl.keystore.password` at the same time.
  1226. //TBD: Why is this different name than `ssl.secure_keystore.password` elsewhere in this file?
  1227. `ssl.keystore.key_password`::
  1228. (<<static-cluster-setting,Static>>)
  1229. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-key-password]
  1230. +
  1231. You cannot use this setting and `ssl.keystore.secure_key_password` at the same
  1232. time.
  1233. `ssl.keystore.secure_key_password`::
  1234. (<<secure-settings,Secure>>)
  1235. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-secure-key-password]
  1236. You cannot use this setting and `ssl.keystore.key_password` at the same time.
  1237. // tag::saml-ssl-truststore-path-tag[]
  1238. `ssl.truststore.path` {ess-icon}::
  1239. (<<static-cluster-setting,Static>>)
  1240. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-truststore-path]
  1241. // end::saml-ssl-truststore-path-tag[]
  1242. // tag::saml-ssl-truststore-type-tag[]
  1243. `ssl.truststore.type` {ess-icon}::
  1244. (<<static-cluster-setting,Static>>)
  1245. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-truststore-type]
  1246. // end::saml-ssl-truststore-type-tag[]
  1247. // tag::saml-ssl-truststore-password-tag[]
  1248. `ssl.truststore.password` {ess-icon}::
  1249. (<<static-cluster-setting,Static>>)
  1250. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-truststore-password]
  1251. // end::saml-ssl-truststore-password-tag[]
  1252. `ssl.truststore.secure_password`::
  1253. (<<secure-settings,Secure>>)
  1254. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-truststore-secure-password]
  1255. +
  1256. This setting cannot be used with `ssl.truststore.password`.
  1257. // tag::saml-ssl-verification-mode-tag[]
  1258. `ssl.verification_mode` {ess-icon}::
  1259. (<<static-cluster-setting,Static>>)
  1260. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-verification-mode-values]
  1261. // end::saml-ssl-verification-mode-tag[]
  1262. // tag::saml-ssl-supported-prototols-tag[]
  1263. `ssl.supported_protocols` {ess-icon}::
  1264. (<<static-cluster-setting,Static>>)
  1265. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-supported-protocols]
  1266. // end::saml-ssl-supported-prototols-tag[]
  1267. // tag::saml-ssl-cipher-suites-tag[]
  1268. `ssl.cipher_suites` {ess-icon}::
  1269. (<<static-cluster-setting,Static>>)
  1270. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-cipher-suites-values]
  1271. // end::saml-ssl-cipher-suites-tag[]
  1272. [discrete]
  1273. [[ref-kerberos-settings]]
  1274. ===== Kerberos realm settings
  1275. // tag::kerberos-description-tag[]
  1276. In addition to the
  1277. <<ref-realm-settings,settings that are valid for all realms>>, you can specify
  1278. the following settings:
  1279. // end::kerberos-description-tag[]
  1280. // tag::kerberos-keytab-path-tag[]
  1281. `keytab.path` {ess-icon}::
  1282. (<<static-cluster-setting,Static>>)
  1283. Specifies the path to the Kerberos keytab file that contains the
  1284. service principal used by this {es} node. This must be a location within the
  1285. {es} configuration directory and the file must have read permissions. Required.
  1286. // end::kerberos-keytab-path-tag[]
  1287. // tag::kerberos-remove-realm-name-tag[]
  1288. `remove_realm_name` {ess-icon}::
  1289. (<<static-cluster-setting,Static>>)
  1290. Set to `true` to remove the realm part of principal names.
  1291. Principal names in Kerberos have the form `user/instance@REALM`. If this option
  1292. is `true`, the realm part (`@REALM`) will not be included in the username.
  1293. Defaults to `false`.
  1294. // end::kerberos-remove-realm-name-tag[]
  1295. `krb.debug`::
  1296. (<<static-cluster-setting,Static>>)
  1297. Set to `true` to enable debug logs for the Java login module that
  1298. provides support for Kerberos authentication. Defaults to `false`.
  1299. // tag::kerberos-cache-ttl-tag[]
  1300. `cache.ttl` {ess-icon}::
  1301. (<<static-cluster-setting,Static>>)
  1302. The time-to-live for cached user entries. A user is cached for
  1303. this period of time. Specify the time period using the standard {es}
  1304. <<time-units,time units>>. Defaults to `20m`.
  1305. // end::kerberos-cache-ttl-tag[]
  1306. // tag::kerberos-cache-max-users-tag[]
  1307. `cache.max_users` {ess-icon}::
  1308. (<<static-cluster-setting,Static>>)
  1309. The maximum number of user entries that can live in the
  1310. cache at any given time. Defaults to 100,000.
  1311. // end::kerberos-cache-max-users-tag[]
  1312. // tag::kerberos-authorization-realms-tag[]
  1313. `authorization_realms` {ess-icon}::
  1314. (<<static-cluster-setting,Static>>)
  1315. The names of the realms that should be consulted for delegated authorization.
  1316. If this setting is used, then the Kerberos realm does not perform role mapping and
  1317. instead loads the user from the listed realms.
  1318. See <<authorization_realms>>.
  1319. // end::kerberos-authorization-realms-tag[]
  1320. [[ref-oidc-settings]]
  1321. [discrete]
  1322. ===== OpenID Connect realm settings
  1323. // tag::oidc-description-tag[]
  1324. In addition to the <<ref-realm-settings,settings that are valid for all realms>>, you
  1325. can specify the following settings.
  1326. // end::oidc-description-tag[]
  1327. // tag::oidc-op-issuer-tag[]
  1328. `op.issuer` {ess-icon}::
  1329. (<<static-cluster-setting,Static>>)
  1330. A verifiable Identifier for your OpenID Connect Provider. An Issuer
  1331. Identifier is usually a case sensitive URL using the https scheme that contains
  1332. scheme, host, and optionally, port number and path components and no query or
  1333. fragment components. The value for this setting should be provided by your OpenID
  1334. Connect Provider.
  1335. // end::oidc-op-issuer-tag[]
  1336. // tag::oidc-op-auth-endpoint-tag[]
  1337. `op.authorization_endpoint` {ess-icon}::
  1338. (<<static-cluster-setting,Static>>)
  1339. The URL for the Authorization Endpoint at the
  1340. OpenID Connect Provider. The value for this setting should be provided by your OpenID
  1341. Connect Provider.
  1342. // end::oidc-op-auth-endpoint-tag[]
  1343. // tag::oidc-token-endpoint-tag[]
  1344. `op.token_endpoint` {ess-icon}::
  1345. (<<static-cluster-setting,Static>>)
  1346. The URL for the Token Endpoint at the OpenID Connect Provider.
  1347. The value for this setting should be provided by your OpenID Connect Provider.
  1348. // end::oidc-token-endpoint-tag[]
  1349. // tag::oidc-userinfo-endpoint-tag[]
  1350. `op.userinfo_endpoint` {ess-icon}::
  1351. (<<static-cluster-setting,Static>>)
  1352. The URL for the User Info Endpoint at the OpenID Connect Provider.
  1353. The value for this setting should be provided by your OpenID Connect Provider.
  1354. // end::oidc-userinfo-endpoint-tag[]
  1355. // tag::oidc-endsession-endpoint-tag[]
  1356. `op.endsession_endpoint` {ess-icon}::
  1357. (<<static-cluster-setting,Static>>)
  1358. The URL for the End Session Endpoint at the OpenID Connect
  1359. Provider. The value for this setting should be provided by your OpenID Connect Provider.
  1360. // end::oidc-endsession-endpoint-tag[]
  1361. // tag::oidc-op-jwkset-path-tag[]
  1362. `op.jwkset_path` {ess-icon}::
  1363. (<<static-cluster-setting,Static>>)
  1364. The path or URL to a JSON Web Key Set with the key material that the OpenID Connect
  1365. Provider uses for signing tokens and claims responses.
  1366. If a path is provided, then it is resolved relative to the {es} config
  1367. directory.
  1368. If a URL is provided, then it must be either a `file` URL or a `https` URL.
  1369. {es} automatically caches the retrieved JWK set to avoid unnecessary HTTP
  1370. requests but will attempt to refresh the JWK upon signature verification
  1371. failure, as this might indicate that the OpenID Connect Provider has
  1372. rotated the signing keys.
  1373. +
  1374. File-based resources are polled at a frequency determined by the global {es}
  1375. `resource.reload.interval.high` setting, which defaults to 5 seconds.
  1376. // end::oidc-op-jwkset-path-tag[]
  1377. `authorization_realms`::
  1378. (<<static-cluster-setting,Static>>)
  1379. The names of the realms that should be consulted for delegated authorization.
  1380. If this setting is used, then the OpenID Connect realm does not perform role
  1381. mapping and instead loads the user from the listed realms.
  1382. See <<authorization_realms>>.
  1383. // tag::rp-client-id-tag[]
  1384. `rp.client_id` {ess-icon}::
  1385. (<<static-cluster-setting,Static>>)
  1386. The OAuth 2.0 Client Identifier that was assigned to {es} during registration
  1387. at the OpenID Connect Provider.
  1388. // end::rp-client-id-tag[]
  1389. `rp.client_secret`::
  1390. (<<secure-settings,Secure>>)
  1391. The OAuth 2.0 Client Secret that was assigned to {es} during registration
  1392. at the OpenID Connect Provider.
  1393. // tag::rp-client-auth-method-tag[]
  1394. `rp.client_auth_method` {ess-icon}::
  1395. (<<static-cluster-setting, Static>>)
  1396. The client authentication method used by {es} to authenticate
  1397. to the OpenID Connect Provider. Can be `client_secret_basic`, `client_secret_post`,
  1398. or `client_secret_jwt`. Defaults to `client_secret_basic`.
  1399. // end::rp-client-auth-method-tag[]
  1400. // tag::rp-client-auth-jwt-signature-algorithm[]
  1401. `rp.client_auth_jwt_signature_algorithm` {ess-icon}::
  1402. (<<static-cluster-setting, Static>>)
  1403. The signature algorithm that {es} uses to sign the JWT with which it authenticates
  1404. as a client to the OpenID Connect Provider when `client_secret_jwt` is selected for
  1405. `rp.client_auth_method`. Can be either `HS256`, `HS384`, or `HS512`. Defaults to
  1406. `HS384`.
  1407. // end::rp-client-auth-jwt-signature-algorithm[]
  1408. // tag::rp-redirect-uri-tag[]
  1409. `rp.redirect_uri` {ess-icon}::
  1410. (<<static-cluster-setting,Static>>)
  1411. The Redirect URI within {kib}. If you want to use the authorization code flow, this is the
  1412. `api/security/oidc/callback` endpoint of your {kib} server. If you want to use the implicit flow, it is the `api/security/oidc/implicit` endpoint.
  1413. For example, `https://kibana.example.com/api/security/oidc/callback`.
  1414. // end::rp-redirect-uri-tag[]
  1415. // tag::rp-response-type-tag[]
  1416. `rp.response_type` {ess-icon}::
  1417. (<<static-cluster-setting,Static>>)
  1418. OAuth 2.0 Response Type value that determines the authorization
  1419. processing flow to be used. Can be `code` for authorization code grant flow,
  1420. or one of `id_token`, `id_token token` for the implicit flow.
  1421. // end::rp-response-type-tag[]
  1422. // tag::rp-signature-algorithm-tag[]
  1423. `rp.signature_algorithm` {ess-icon}::
  1424. (<<static-cluster-setting,Static>>)
  1425. The signature algorithm that will be used by {es} in order to verify the
  1426. signature of the id tokens it will receive from the OpenID Connect Provider.
  1427. Allowed values are `HS256`, `HS384`, `HS512`, `ES256`, `ES384`, `ES512`,
  1428. `RS256`, `RS384`, `RS512`, `PS256`, `PS384`, `PS512`.
  1429. Defaults to `RS256`.
  1430. // end::rp-signature-algorithm-tag[]
  1431. // tag::rp-requested-scopes-tag[]
  1432. `rp.requested_scopes` {ess-icon}::
  1433. (<<static-cluster-setting,Static>>)
  1434. The scope values that will be requested by the OpenID Connect Provider as
  1435. part of the Authentication Request. Optional, defaults to `openid`
  1436. // end::rp-requested-scopes-tag[]
  1437. // tag::rp-post-logout-redirect-url-tag[]
  1438. `rp.post_logout_redirect_uri` {ess-icon}::
  1439. (<<static-cluster-setting,Static>>)
  1440. The Redirect URI (usually within {kib}) that the OpenID Connect Provider
  1441. should redirect the browser to after a successful Single Logout.
  1442. // end::rp-post-logout-redirect-url-tag[]
  1443. // tag::oidc-claims-principal-tag[]
  1444. `claims.principal`::
  1445. (<<static-cluster-setting,Static>>)
  1446. The name of the OpenID Connect claim that contains the user's principal (username).
  1447. // end::oidc-claims-principal-tag[]
  1448. // tag::oidc-claims-groups-tag[]
  1449. `claims.groups` {ess-icon}::
  1450. (<<static-cluster-setting,Static>>)
  1451. The name of the OpenID Connect claim that contains the user's groups.
  1452. // end::oidc-claims-groups-tag[]
  1453. // tag::oidc-claims-mail-tag[]
  1454. `claims.name` {ess-icon}::
  1455. (<<static-cluster-setting,Static>>)
  1456. The name of the OpenID Connect claim that contains the user's full name.
  1457. // end::oidc-claims-mail-tag[]
  1458. // tag::oidc-claims-mail-tag[]
  1459. `claims.mail` {ess-icon}::
  1460. (<<static-cluster-setting,Static>>)
  1461. The name of the OpenID Connect claim that contains the user's email address.
  1462. // end::oidc-claims-mail-tag[]
  1463. // tag::oidc-claims-dn-tag[]
  1464. `claims.dn` {ess-icon}::
  1465. (<<static-cluster-setting,Static>>)
  1466. The name of the OpenID Connect claim that contains the user's X.509
  1467. _Distinguished Name_.
  1468. // end::oidc-claims-dn-tag[]
  1469. // tag::oidc-claim-pattern-principal-tag[]
  1470. `claim_patterns.principal` {ess-icon}::
  1471. (<<static-cluster-setting,Static>>)
  1472. A Java regular expression that is matched against the OpenID Connect claim specified
  1473. by `claims.principal` before it is applied to the user's _principal_ property.
  1474. The attribute value must match the pattern and the value of the first
  1475. _capturing group_ is used as the principal. For example, `^([^@]+)@example\\.com$`
  1476. matches email addresses from the "example.com" domain and uses the local-part as
  1477. the principal.
  1478. // end::oidc-claim-pattern-principal-tag[]
  1479. // tag::oidc-claim-pattern-groups-tag[]
  1480. `claim_patterns.groups` {ess-icon}::
  1481. (<<static-cluster-setting,Static>>)
  1482. As per `claim_patterns.principal`, but for the _group_ property.
  1483. // end::oidc-claim-pattern-groups-tag[]
  1484. // tag::oidc-claim-pattern-name-tag[]
  1485. `claim_patterns.name` {ess-icon}::
  1486. (<<static-cluster-setting,Static>>)
  1487. As per `claim_patterns.principal`, but for the _name_ property.
  1488. // end::oidc-claim-pattern-name-tag[]
  1489. // tag::oidc-claim-pattern-mail-tag[]
  1490. `claim_patterns.mail` {ess-icon}::
  1491. (<<static-cluster-setting,Static>>)
  1492. As per `claim_patterns.principal`, but for the _mail_ property.
  1493. // end::oidc-claim-pattern-mail-tag[]
  1494. // tag::oidc-claim-pattern-dn-tag[]
  1495. `claim_patterns.dn` {ess-icon}::
  1496. (<<static-cluster-setting,Static>>)
  1497. As per `claim_patterns.principal`, but for the _dn_ property.
  1498. // end::oidc-claim-pattern-dn-tag[]
  1499. // tag::oidc-allowed-clock-skew-tag[]
  1500. `allowed_clock_skew` {ess-icon}::
  1501. (<<static-cluster-setting,Static>>)
  1502. The maximum allowed clock skew to be taken into consideration when validating
  1503. id tokens with regards to their creation and expiration times.
  1504. Defaults to `60s`.
  1505. // end::oidc-allowed-clock-skew-tag[]
  1506. // tag::oidc-populate-user-metadata-tag[]
  1507. `populate_user_metadata` {ess-icon}::
  1508. (<<static-cluster-setting,Static>>)
  1509. Specifies whether to populate the {es} user's metadata with the values that are
  1510. provided by the OpenID Connect claims. Defaults to `true`.
  1511. // end::oidc-populate-user-metadata-tag[]
  1512. `http.proxy.host`::
  1513. (<<static-cluster-setting,Static>>)
  1514. Specifies the address of the proxy server that will be used by the internal
  1515. http client for all back-channel communication to the OpenID Connect Provider
  1516. endpoints. This includes requests to the Token Endpoint, the Userinfo Endpoint
  1517. and requests to fetch the JSON Web Key Set from the OP if `op.jwkset_path` is
  1518. set as a URL.
  1519. `http.proxy.scheme`::
  1520. (<<static-cluster-setting,Static>>)
  1521. Specifies the protocol to use to connect to the proxy server that will be
  1522. used by the http client for all back-channel communication to the OpenID
  1523. Connect Provider endpoints. Defaults to `http`. Allowed values are
  1524. `http` or `https`.
  1525. `http.proxy.port`::
  1526. (<<static-cluster-setting,Static>>)
  1527. Specifies the port of the proxy server that will be used by the http
  1528. client for all backchannel communication to the OpenID Connect Provider
  1529. endpoints. Defaults to `80`.
  1530. // tag::oidc-http-connect-timeout-tag[]
  1531. `http.connect_timeout` {ess-icon}::
  1532. (<<static-cluster-setting,Static>>)
  1533. Controls the behavior of the http client used for back-channel communication to
  1534. the OpenID Connect Provider endpoints. Specifies the timeout until a connection
  1535. is established. A value of zero means the timeout is not used. Defaults to `5s`.
  1536. // end::oidc-http-connect-timeout-tag[]
  1537. // tag::oidc-http-read-timeout-tag[]
  1538. `http.connection_read_timeout` {ess-icon}::
  1539. (<<static-cluster-setting,Static>>)
  1540. Controls the behavior of the http client used for back-channel communication to
  1541. the OpenID Connect Provider endpoints. Specifies the timeout used when
  1542. requesting a connection from the connection manager. Defaults to `5s`
  1543. // end::oidc-http-read-timeout-tag[]
  1544. // tag::oidc-http-socket-timeout[]
  1545. `http.socket_timeout` {ess-icon}::
  1546. (<<static-cluster-setting,Static>>)
  1547. Controls the behavior of the http client used for back-channel communication to
  1548. the OpenID Connect Provider endpoints. Specifies the socket timeout (SO_TIMEOUT)
  1549. in milliseconds, which is the timeout for waiting for data or, put differently,
  1550. a maximum period inactivity between two consecutive data packets). Defaults to
  1551. `5s`.
  1552. // end::oidc-http-socket-timeout[]
  1553. // tag::oidc-http-max-connections-tag[]
  1554. `http.max_connections` {ess-icon}::
  1555. (<<static-cluster-setting,Static>>)
  1556. Controls the behavior of the http client used for back-channel communication to
  1557. the OpenID Connect Provider endpoints. Specifies the maximum number of
  1558. connections allowed across all endpoints.
  1559. Defaults to `200`.
  1560. // end::oidc-http-max-connections-tag[]
  1561. // tag::oidc-http-max-endpoint-connections-tag[]
  1562. `http.max_endpoint_connections` {ess-icon}::
  1563. (<<static-cluster-setting,Static>>)
  1564. Controls the behavior of the http client used for back-channel communication to
  1565. the OpenID Connect Provider endpoints. Specifies the maximum number of
  1566. connections allowed per endpoint.
  1567. Defaults to `200`.
  1568. // end::oidc-http-max-endpoint-connections-tag[]
  1569. // tag::oidc-http-tcp-keepalive-tag[]
  1570. `http.tcp.keep_alive` {ess-icon}::
  1571. (<<static-cluster-setting,Static>>)
  1572. Whether to enable TCP keepalives on HTTP connections used for back-channel communication
  1573. to the OpenID Connect Provider endpoints. Defaults to `true`.
  1574. // end::oidc-http-tcp-keepalive-tag[]
  1575. // tag::oidc-http-connection-pool-ttl-tag[]
  1576. `http.connection_pool_ttl` {ess-icon}::
  1577. (<<static-cluster-setting,Static>>)
  1578. Controls the behavior of the http client used for back-channel communication to
  1579. the OpenID Connect Provider endpoints. Specifies the time-to-live of connections
  1580. in the connection pool (default to 3 minutes). A connection is closed if it is
  1581. idle for more than the specified timeout.
  1582. The server can also set the `Keep-Alive` HTTP response header. The effective
  1583. time-to-live value is the smaller value between this setting and the `Keep-Alive`
  1584. reponse header. Configure this setting to `-1` to let the server dictate the value.
  1585. If the header is not set by the server and the setting has value of `-1`,
  1586. the time-to-live is infinite and connections never expire.
  1587. // end::oidc-http-connection-pool-ttl-tag[]
  1588. [discrete]
  1589. [[ref-oidc-ssl-settings]]
  1590. ===== OpenID Connect realm SSL settings
  1591. // tag::oidc-ssl-description-tag[]
  1592. The following settings can be used to configure SSL for all outgoing http connections
  1593. to the OpenID Connect Provider endpoints.
  1594. NOTE: These settings are _only_ used for the back-channel communication between
  1595. {es} and the OpenID Connect Provider
  1596. // end::oidc-ssl-description-tag[]
  1597. // tag::oidc-ssl-key-tag[]
  1598. `ssl.key` {ess-icon}::
  1599. (<<static-cluster-setting,Static>>)
  1600. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-key-pem]
  1601. // end::oidc-ssl-key-tag[]
  1602. // tag::oidc-ssl-key-passphrase-tag[]
  1603. `ssl.key_passphrase` {ess-icon}::
  1604. (<<static-cluster-setting,Static>>)
  1605. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-key-passphrase]
  1606. // end::oidc-ssl-key-passphrase-tag[]
  1607. `ssl.secure_key_passphrase`::
  1608. (<<secure-settings,Secure>>)
  1609. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-secure-key-passphrase]
  1610. +
  1611. You cannot use this setting and `ssl.key_passphrase` at the same time.
  1612. // tag::oidc-ssl-certificate-tag[]
  1613. `ssl.certificate` {ess-icon}::
  1614. (<<static-cluster-setting,Static>>)
  1615. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-certificate]
  1616. // end::oidc-ssl-certificate-tag[]
  1617. // tag::oidc-ssl-certificate-authorities-tag[]
  1618. `ssl.certificate_authorities` {ess-icon}::
  1619. (<<static-cluster-setting,Static>>)
  1620. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-certificate-authorities]
  1621. // end::oidc-ssl-certificate-authorities-tag[]
  1622. // tag::oidc-ssl-keystore-path-tag[]
  1623. `ssl.keystore.path` {ess-icon}::
  1624. (<<static-cluster-setting,Static>>)
  1625. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-path]
  1626. // end::oidc-ssl-keystore-path-tag[]
  1627. // tag::oidc-ssl-keystore-type-tag[]
  1628. `ssl.keystore.type` {ess-icon}::
  1629. (<<static-cluster-setting,Static>>)
  1630. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-type-pkcs12]
  1631. // end::oidc-ssl-keystore-type-tag[]
  1632. // tag::oidc-ssl-keystore-password-tag[]
  1633. `ssl.keystore.password` {ess-icon}::
  1634. (<<static-cluster-setting,Static>>)
  1635. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-password]
  1636. // end::oidc-ssl-keystore-password-tag[]
  1637. `ssl.keystore.secure_password`::
  1638. (<<secure-settings,Secure>>)
  1639. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-secure-password]
  1640. +
  1641. You cannot use this setting and `ssl.keystore.password` at the same time.
  1642. `ssl.keystore.key_password`::
  1643. (<<static-cluster-setting,Static>>)
  1644. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-key-password]
  1645. +
  1646. You cannot use this setting and `ssl.keystore.secure_key_password` at the same
  1647. time.
  1648. `ssl.keystore.secure_key_password`::
  1649. (<<secure-settings,Secure>>)
  1650. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-secure-key-password]
  1651. +
  1652. You cannot use this setting and `ssl.keystore.key_password` at the same time.
  1653. // tag::oidc-ssl-truststore-path-tag[]
  1654. `ssl.truststore.path` {ess-icon}::
  1655. (<<static-cluster-setting,Static>>)
  1656. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-truststore-path]
  1657. // end::oidc-ssl-truststore-path-tag[]
  1658. // tag::oidc-ssl-truststore-type-tag[]
  1659. `ssl.truststore.type` {ess-icon}::
  1660. (<<static-cluster-setting,Static>>)
  1661. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-truststore-type]
  1662. // end::oidc-ssl-truststore-type-tag[]
  1663. // tag::oidc-ssl-truststore-password-tag[]
  1664. `ssl.truststore.password` {ess-icon}::
  1665. (<<static-cluster-setting,Static>>)
  1666. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-truststore-password]
  1667. // end::oidc-ssl-truststore-password-tag[]
  1668. `ssl.truststore.secure_password`::
  1669. (<<secure-settings,Secure>>)
  1670. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-truststore-secure-password]
  1671. +
  1672. You cannot use this setting and `ssl.truststore.password` at the same time.
  1673. // tag::oidc-ssl-verification-mode-tag[]
  1674. `ssl.verification_mode` {ess-icon}::
  1675. (<<static-cluster-setting,Static>>)
  1676. Controls the verification of certificates.
  1677. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-verification-mode-values]
  1678. // end::oidc-ssl-verification-mode-tag[]
  1679. // tag::oidc-ssl-supported-protocols-tag[]
  1680. `ssl.supported_protocols` {ess-icon}::
  1681. (<<static-cluster-setting,Static>>)
  1682. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-supported-protocols]
  1683. // end::oidc-ssl-supported-protocols-tag[]
  1684. // tag::oidc-ssl-cipher-suites-tag[]
  1685. `ssl.cipher_suites` {ess-icon}::
  1686. (<<static-cluster-setting,Static>>)
  1687. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-cipher-suites-values]
  1688. // end::oidc-ssl-cipher-suites-tag[]
  1689. [[ref-jwt-settings]]
  1690. [discrete]
  1691. ===== JWT realm settings
  1692. // tag::jwt-description-tag[]
  1693. In addition to the <<ref-realm-settings,settings that are valid for all realms>>, you
  1694. can specify the following settings.
  1695. // end::jwt-description-tag[]
  1696. // tag::jwt-allowed-audiences-tag[]
  1697. `allowed_audiences` {ess-icon}::
  1698. (<<static-cluster-setting,Static>>)
  1699. A list of allowed JWT audiences that {es} should verify. {es} will only consume
  1700. JWTs that were intended for any of these audiences, as denoted by the `aud`
  1701. claim in the JWT). Examples of `aud` claim are `https://example.com/client1`
  1702. and `other_service,elasticsearch`.
  1703. // end::jwt-allowed-audiences-tag[]
  1704. // tag::jwt-allowed-clock-skew-tag[]
  1705. `allowed_clock_skew` {ess-icon}::
  1706. (<<static-cluster-setting,Static>>)
  1707. The maximum allowed clock skew to be taken into consideration when validating
  1708. JWTs with regards to their creation, not before, and expiration times.
  1709. // end::jwt-allowed-clock-skew-tag[]
  1710. // tag::jwt-allowed-issuer-tag[]
  1711. `allowed_issuer` {ess-icon}::
  1712. (<<static-cluster-setting,Static>>)
  1713. A verifiable Identifier for your JWT Issuer. An Issuer
  1714. Identifier is usually a case sensitive URL using the https scheme that contains
  1715. scheme, host, and optionally, port number and path components and no query or
  1716. fragment components. However, it can be any string. The value for this setting
  1717. should be provided by your JWT Issuer.
  1718. Examples of `iss` claim are `https://example.com:8443/jwt` and `issuer123`.
  1719. // end::jwt-allowed-issuer-tag[]
  1720. // tag::jwt-allowed-signature-algorithms-tag[]
  1721. `allowed_signature_algorithms` {ess-icon}::
  1722. (<<static-cluster-setting,Static>>)
  1723. A list of signature algorithms that will be used by {es} in order to verify the
  1724. signature of the JWT it will receive from the JWT Issuer.
  1725. Defaults to `RS256`. Examples are `HS512,RS512,ES512` and `ES384`.
  1726. Allowed values are `HS256`, `HS384`, `HS512`, `ES256`, `ES384`, `ES512`,
  1727. `RS256`, `RS384`, `RS512`, `PS256`, `PS384`, `PS512`.
  1728. // end::jwt-allowed-signature-algorithms-tag[]
  1729. `authorization_realms`::
  1730. (<<static-cluster-setting,Static>>)
  1731. The names of the realms that should be consulted for delegated authorization.
  1732. If this setting is used, then the JWT realm does not perform role
  1733. mapping and instead loads the user from the listed realms.
  1734. See <<authorization_realms>>.
  1735. // tag::jwt-claims-dn-tag[]
  1736. `claims.dn` {ess-icon}::
  1737. (<<static-cluster-setting,Static>>)
  1738. The name of the JWT claim that contains the user's Distinguished Name (DN),
  1739. which uniquely identifies a user or group.
  1740. // end::jwt-claims-dn-tag[]
  1741. // tag::jwt-claims-pattern-dn-tag[]
  1742. `claim_patterns.dn` {ess-icon}::
  1743. (<<static-cluster-setting,Static>>)
  1744. Accepts the same Java regular expression as
  1745. <<jwt-claim-pattern-principal,`claim_patterns.principal`>>, but for the `dn`
  1746. property.
  1747. // end::jwt-claims-pattern-dn-tag[]
  1748. // tag::jwt-claims-groups-tag[]
  1749. `claims.groups` {ess-icon}::
  1750. (<<static-cluster-setting,Static>>)
  1751. The name of the JWT claim that contains the user's groups, such as `groups` and
  1752. `roles`.
  1753. // end::jwt-claims-groups-tag[]
  1754. // tag::jwt-claim-pattern-groups-tag[]
  1755. `claim_patterns.group` {ess-icon}::
  1756. (<<static-cluster-setting,Static>>)
  1757. Accepts the same Java regular expression as
  1758. <<jwt-claim-pattern-principal,`claim_patterns.principal`>>, but for the `group`
  1759. property.
  1760. // end::jwt-claim-pattern-groups-tag[]
  1761. // tag::jwt-claims-mail-tag[]
  1762. `claims.mail` {ess-icon}::
  1763. (<<static-cluster-setting,Static>>)
  1764. The name of the JWT claim that contains the user's e-mail address.
  1765. // end::jwt-claims-mail-tag[]
  1766. // tag::jwt-claims-pattern-mail-tag[]
  1767. `claim_patterns.mail` {ess-icon}::
  1768. (<<static-cluster-setting,Static>>)
  1769. Accepts the same Java regular expression as
  1770. <<jwt-claim-pattern-principal,`claim_patterns.principal`>>, but for the `mail`
  1771. property.
  1772. // end::jwt-claims-pattern-mail-tag[]
  1773. // tag::jwt-claims-name-tag[]
  1774. `claims.name` {ess-icon}::
  1775. (<<static-cluster-setting,Static>>)
  1776. The name of the JWT claim that contains the user's username.
  1777. // end::jwt-claims-name-tag[]
  1778. // tag::jwt-claims-pattern-name-tag[]
  1779. `claim_patterns.name` {ess-icon}::
  1780. (<<static-cluster-setting,Static>>)
  1781. Accepts the same Java regular expression as
  1782. <<jwt-claim-pattern-principal,`claim_patterns.principal`>>, but for the `name`
  1783. property.
  1784. // end::jwt-claims-pattern-name-tag[]
  1785. // tag::jwt-claims-principal-tag[]
  1786. `claims.principal`::
  1787. (<<static-cluster-setting,Static>>)
  1788. The name of the JWT claim that contains the user's principal (username), such as
  1789. `sub`, `name`, `email`, and `dn`.
  1790. // end::jwt-claims-principal-tag[]
  1791. [[jwt-claim-pattern-principal]]
  1792. // tag::jwt-claim-pattern-principal-tag[]
  1793. `claim_patterns.principal` {ess-icon}::
  1794. (<<static-cluster-setting,Static>>)
  1795. An optional Java regular expression that is matched against the JWT claim specified
  1796. by `claims.principal` before it is applied to the user's `principal` property.
  1797. The value must match the pattern and the value of the first
  1798. _capturing group_ is used as the principal. For example, `^([^@]+)@example\\.com$`
  1799. matches email addresses from the `example.com` domain and uses the local-part as
  1800. the principal. Another example is `sub` which may not need a pattern setting.
  1801. // end::jwt-claim-pattern-principal-tag[]
  1802. // tag::jwt-client-authentication-type-tag[]
  1803. `client_authentication.type` {ess-icon}::
  1804. (<<static-cluster-setting,Static>>)
  1805. Specifies whether to use `shared_secret` or `none` to authenticate
  1806. incoming client requests. If this value is `shared_secret`, the client is
  1807. authenticated using an HTTP request header that must match a pre-configured
  1808. secret value. The client must provide this shared secret with every request in
  1809. the `ES-Client-Authentication` header. If this value is `none`, then the
  1810. request header `ES-Client-Authentication` is ignored. Defaults to
  1811. `shared_secret`.
  1812. +
  1813. Enabling client authentication is recommended. If JWT bearer
  1814. tokens are shared with other clients or services, client authentication
  1815. restricts which ones are allowed to submit those JWTs to {es}.
  1816. // end::jwt-client-authentication-type-tag[]
  1817. // tag::jwt-client-authentication-shared-secret-tag[]
  1818. `client_authentication.shared_secret` {ess-icon}::
  1819. (<<secure-settings,Secure>>)
  1820. Secret value string for client authentication.
  1821. Required if `client_authentication.type` is `shared_secret`.
  1822. // end::jwt-client-authentication-shared-secret-tag[]
  1823. // tag::jwt-http-connect-timeout-tag[]
  1824. `http.connect_timeout` {ess-icon}::
  1825. (<<static-cluster-setting,Static>>)
  1826. Sets the timeout for the HTTP client that is used for fetching the JSON Web Key
  1827. Set from a remote URL. A value of zero means the timeout is not used. Defaults
  1828. to `5s`.
  1829. // end::jwt-http-connect-timeout-tag[]
  1830. // tag::jwt-http-read-timeout-tag[]
  1831. `http.connection_read_timeout` {ess-icon}::
  1832. (<<static-cluster-setting,Static>>)
  1833. Specifies the HTTP timeout used when requesting a connection from the connection
  1834. manager. Defaults to `5s`.
  1835. // end::jwt-http-read-timeout-tag[]
  1836. // tag::jwt-http-socket-timeout[]
  1837. `http.socket_timeout` {ess-icon}::
  1838. (<<static-cluster-setting,Static>>)
  1839. Specifies the maximum socket timeout (SO_TIMEOUT) for the HTTP client to wait
  1840. for inactivity between two consecutive data packets. Defaults to `5s`.
  1841. // end::jwt-http-socket-timeout[]
  1842. // tag::jwt-http-max-connections-tag[]
  1843. `http.max_connections` {ess-icon}::
  1844. (<<static-cluster-setting,Static>>)
  1845. Specifies the maximum number of connections allowed across all endpoints.
  1846. // end::jwt-http-max-connections-tag[]
  1847. // tag::jwt-http-max-endpoint-connections-tag[]
  1848. `http.max_endpoint_connections` {ess-icon}::
  1849. (<<static-cluster-setting,Static>>)
  1850. Specifies the maximum number of connections allowed per endpoint.
  1851. // end::jwt-http-max-endpoint-connections-tag[]
  1852. `jwt.cache.size`::
  1853. (<<static-cluster-setting,Static>>)
  1854. Specifies the maximum number of JWT cache entries. If clients use a different
  1855. JWT for every request, set to `0` to disable the JWT cache. Defaults to `100000`.
  1856. `jwt.cache.ttl`::
  1857. (<<static-cluster-setting,Static>>)
  1858. Specifies the time-to-live for the period of time to cache JWT entries.
  1859. JWTs can only be cached if client authentication is successful (or disabled).
  1860. Uses the standard {es} <<time-units,time units>>. If clients use a different JWT
  1861. for every request, set to `0` to disable the JWT cache. Defaults to `20m`.
  1862. // tag::jwt-pkc-jwkset-path-tag[]
  1863. `pkc_jwkset_path` {ess-icon}::
  1864. (<<static-cluster-setting,Static>>)
  1865. The file path or URL to a JSON Web Key Set (JWKS) with the public key material that
  1866. the JWT Realm uses for verifying token signatures. If a path is provided,
  1867. then it is resolved relative to the {es} configuration directory. In {ecloud},
  1868. use an absolute path starting with `/app/config/`.
  1869. +
  1870. If a URL is provided, then it must be either a `file` URL or an `https` URL.
  1871. {es} automatically caches the retrieved JWK set to avoid unnecessary HTTP
  1872. requests, but will attempt to refresh the JWK upon signature verification
  1873. failure, as this might indicate that the JWT Provider has
  1874. rotated the signing keys.
  1875. +
  1876. File-based resources are polled at a frequency determined by the global {es}
  1877. `resource.reload.interval.high` setting, which defaults to `5s`.
  1878. // end::jwt-pkc-jwkset-path-tag[]
  1879. // tag::jwt-hmac-jwkset-tag[]
  1880. `hmac_jwkset` {ess-icon}::
  1881. (<<secure-settings,Secure>>)
  1882. Contents of a JSON Web Key Set (JWKS), including the secret key that the JWT
  1883. realm uses to verify token signatures. This format supports multiple keys and
  1884. optional attributes, and is preferred over the `hmac_key` setting. Cannot be
  1885. used in conjunction with the `hmac_key` setting. Refer to
  1886. <<jwt-realm-configuration,Configure {es} to use a JWT realm>>.
  1887. // end::jwt-hmac-jwkset-tag[]
  1888. // tag::jwt-hmac-key-tag[]
  1889. `hmac_key` {ess-icon}::
  1890. (<<secure-settings,Secure>>)
  1891. Contents of a single JSON Web Key (JWK), including the secret key that the JWT
  1892. realm uses to verify token signatures. This format only supports a single key
  1893. without attributes, and cannot be used with the `hmac_jwkset` setting. This
  1894. format is compatible with OIDC. The HMAC key must be a UNICODE string, where
  1895. the key bytes are the UTF-8 encoding of the UNICODE string.
  1896. The `hmac_jwkset` setting is preferred. Refer to
  1897. <<jwt-realm-configuration,Configure {es} to use a JWT realm>>.
  1898. // end::jwt-hmac-key-tag[]
  1899. // tag::jwt-populate-user-metadata-tag[]
  1900. `populate_user_metadata` {ess-icon}::
  1901. (<<static-cluster-setting,Static>>)
  1902. Specifies whether to populate the {es} user's metadata with the values that are
  1903. provided by the JWT claims. Defaults to `true`.
  1904. // end::jwt-populate-user-metadata-tag[]
  1905. [discrete]
  1906. [[ref-jwt-ssl-settings]]
  1907. ===== JWT realm SSL settings
  1908. // tag::jwt-ssl-description-tag[]
  1909. The following settings can be used to configure SSL for fetching the JSON Web
  1910. Key Set from a remote URL.
  1911. NOTE: These settings are _only_ used for the back-channel communication between
  1912. {es} and the JWT Issuer.
  1913. // end::jwt-ssl-description-tag[]
  1914. // tag::jwt-ssl-key-tag[]
  1915. `ssl.key` {ess-icon}::
  1916. (<<static-cluster-setting,Static>>)
  1917. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-key-pem]
  1918. // end::jwt-ssl-key-tag[]
  1919. // tag::jwt-ssl-key-passphrase-tag[]
  1920. `ssl.key_passphrase` {ess-icon}::
  1921. (<<static-cluster-setting,Static>>)
  1922. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-key-passphrase]
  1923. // end::jwt-ssl-key-passphrase-tag[]
  1924. `ssl.secure_key_passphrase`::
  1925. (<<secure-settings,Secure>>)
  1926. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-secure-key-passphrase]
  1927. +
  1928. You cannot use this setting and `ssl.key_passphrase` at the same time.
  1929. // tag::jwt-ssl-certificate-tag[]
  1930. `ssl.certificate` {ess-icon}::
  1931. (<<static-cluster-setting,Static>>)
  1932. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-certificate]
  1933. // end::jwt-ssl-certificate-tag[]
  1934. // tag::jwt-ssl-certificate-authorities-tag[]
  1935. `ssl.certificate_authorities` {ess-icon}::
  1936. (<<static-cluster-setting,Static>>)
  1937. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-certificate-authorities]
  1938. // end::jwt-ssl-certificate-authorities-tag[]
  1939. // tag::jwt-ssl-keystore-path-tag[]
  1940. `ssl.keystore.path` {ess-icon}::
  1941. (<<static-cluster-setting,Static>>)
  1942. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-path]
  1943. // end::jwt-ssl-keystore-path-tag[]
  1944. // tag::jwt-ssl-keystore-type-tag[]
  1945. `ssl.keystore.type` {ess-icon}::
  1946. (<<static-cluster-setting,Static>>)
  1947. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-type-pkcs12]
  1948. // end::jwt-ssl-keystore-type-tag[]
  1949. `ssl.keystore.secure_password`::
  1950. (<<secure-settings,Secure>>)
  1951. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-secure-password]
  1952. +
  1953. You cannot use this setting and `ssl.keystore.password` at the same time.
  1954. `ssl.keystore.key_password`::
  1955. (<<static-cluster-setting,Static>>)
  1956. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-key-password]
  1957. +
  1958. You cannot use this setting and `ssl.keystore.secure_key_password` at the same
  1959. time.
  1960. `ssl.keystore.secure_key_password`::
  1961. (<<secure-settings,Secure>>)
  1962. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-secure-key-password]
  1963. +
  1964. You cannot use this setting and `ssl.keystore.key_password` at the same time.
  1965. // tag::jwt-ssl-truststore-path-tag[]
  1966. `ssl.truststore.path` {ess-icon}::
  1967. (<<static-cluster-setting,Static>>)
  1968. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-truststore-path]
  1969. // end::jwt-ssl-truststore-path-tag[]
  1970. // tag::jwt-ssl-truststore-type-tag[]
  1971. `ssl.truststore.type` {ess-icon}::
  1972. (<<static-cluster-setting,Static>>)
  1973. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-truststore-type]
  1974. // end::jwt-ssl-truststore-type-tag[]
  1975. // tag::jwt-ssl-truststore-password-tag[]
  1976. `ssl.truststore.password` {ess-icon}::
  1977. (<<static-cluster-setting,Static>>)
  1978. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-truststore-password]
  1979. // end::jwt-ssl-truststore-password-tag[]
  1980. `ssl.truststore.secure_password`::
  1981. (<<secure-settings,Secure>>)
  1982. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-truststore-secure-password]
  1983. +
  1984. You cannot use this setting and `ssl.truststore.password` at the same time.
  1985. // tag::jwt-ssl-verification-mode-tag[]
  1986. `ssl.verification_mode` {ess-icon}::
  1987. (<<static-cluster-setting,Static>>)
  1988. Controls the verification of certificates.
  1989. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-verification-mode-values]
  1990. // end::jwt-ssl-verification-mode-tag[]
  1991. // tag::jwt-ssl-supported-protocols-tag[]
  1992. `ssl.supported_protocols` {ess-icon}::
  1993. (<<static-cluster-setting,Static>>)
  1994. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-supported-protocols]
  1995. // end::jwt-ssl-supported-protocols-tag[]
  1996. // tag::jwt-ssl-cipher-suites-tag[]
  1997. `ssl.cipher_suites` {ess-icon}::
  1998. (<<static-cluster-setting,Static>>)
  1999. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-cipher-suites-values]
  2000. // end::jwt-ssl-cipher-suites-tag[]
  2001. [discrete]
  2002. [[load-balancing]]
  2003. ===== Load balancing and failover
  2004. The <<static-cluster-setting,static>> `load_balance.type` setting can have the
  2005. following values:
  2006. * `failover`: The URLs specified are used in the order that they are specified.
  2007. The first server that can be connected to will be used for all subsequent
  2008. connections. If a connection to that server fails then the next server that a
  2009. connection can be established to will be used for subsequent connections.
  2010. * `dns_failover`: In this mode of operation, only a single URL may be specified.
  2011. This URL must contain a DNS name. The system will be queried for all IP
  2012. addresses that correspond to this DNS name. Connections to the Active Directory
  2013. or LDAP server will always be tried in the order in which they were retrieved.
  2014. This differs from `failover` in that there is no reordering of the list and if a
  2015. server has failed at the beginning of the list, it will still be tried for each
  2016. subsequent connection.
  2017. * `round_robin`: Connections will continuously iterate through the list of
  2018. provided URLs. If a server is unavailable, iterating through the list of URLs
  2019. will continue until a successful connection is made.
  2020. * `dns_round_robin`: In this mode of operation, only a single URL may be
  2021. specified. This URL must contain a DNS name. The system will be queried for all
  2022. IP addresses that correspond to this DNS name. Connections will continuously
  2023. iterate through the list of addresses. If a server is unavailable, iterating
  2024. through the list of URLs will continue until a successful connection is made.
  2025. [discrete]
  2026. [[ssl-tls-settings]]
  2027. ==== General TLS settings
  2028. `xpack.security.ssl.diagnose.trust`::
  2029. (<<static-cluster-setting,Static>>)
  2030. Controls whether to output diagnostic messages for SSL/TLS trust failures.
  2031. If this is `true` (the default), a message will be printed to the Elasticsearch
  2032. log whenever an SSL connection (incoming or outgoing) is rejected due to a failure
  2033. to establish trust.
  2034. This diagnostic message contains information that can be used to determine the
  2035. cause of the failure and assist with resolving the problem.
  2036. Set to `false` to disable these messages.
  2037. [discrete]
  2038. [[tls-ssl-key-settings]]
  2039. ===== TLS/SSL key and trusted certificate settings
  2040. The following settings are used to specify a private key, certificate, and the
  2041. trusted certificates that should be used when communicating over an SSL/TLS
  2042. connection. If no trusted certificates are configured, the default certificates
  2043. that are trusted by the JVM will be trusted along with the certificate(s)
  2044. associated with a key in the same context. The key and certificate must be in
  2045. place for connections that require client authentication or when acting as a
  2046. SSL enabled server.
  2047. [[pkcs12-truststore-note]]
  2048. [NOTE]
  2049. Storing trusted certificates in a PKCS#12 file, although supported, is
  2050. uncommon in practice. The <<certutil,`elasticsearch-certutil` tool>>,
  2051. as well as Java's `keytool`, are designed to generate PKCS#12 files that
  2052. can be used both as a keystore and as a truststore, but this may not be the
  2053. case for container files that are created using other tools. Usually,
  2054. PKCS#12 files only contain secret and private entries. To confirm that
  2055. a PKCS#12 container includes trusted certificate ("anchor") entries look for
  2056. `2.16.840.1.113894.746875.1.1: <Unsupported tag 6>` in the
  2057. `openssl pkcs12 -info` output, or `trustedCertEntry` in the
  2058. `keytool -list` output.
  2059. [[http-tls-ssl-settings]]
  2060. :ssl-prefix: xpack.security.http
  2061. :component: HTTP
  2062. :client-auth-default: none
  2063. :verifies!:
  2064. :server:
  2065. :ssl-context: security-http
  2066. :ssl-layer: HTTP networking layer, which {es} uses to communicate with other clients
  2067. include::ssl-settings.asciidoc[]
  2068. [[transport-tls-ssl-settings]]
  2069. :ssl-prefix: xpack.security.transport
  2070. :component: Transport
  2071. :client-auth-default!:
  2072. :verifies:
  2073. :server:
  2074. :ssl-context: security-transport
  2075. :ssl-layer: transport networking layer, which nodes use to communicate with each other
  2076. include::ssl-settings.asciidoc[]
  2077. [[ssl-tls-profile-settings]]
  2078. [discrete]
  2079. ===== Transport profile TLS/SSL settings
  2080. The same settings that are available for the <<transport-tls-ssl-settings, default transport>>
  2081. are also available for each transport profile. By default, the settings for a
  2082. transport profile will be the same as the default transport unless they
  2083. are specified.
  2084. As an example, lets look at the key setting. For the default transport
  2085. this is `xpack.security.transport.ssl.key`. In order to use this setting in a
  2086. transport profile, use the prefix `transport.profiles.$PROFILE.xpack.security.` and
  2087. append the portion of the setting after `xpack.security.transport.`. For the key
  2088. setting, this would be `transport.profiles.$PROFILE.xpack.security.ssl.key`.
  2089. [discrete]
  2090. [[ip-filtering-settings]]
  2091. ==== IP filtering settings
  2092. You can configure the following settings for <<ip-filtering,IP filtering>>.
  2093. `xpack.security.transport.filter.allow`::
  2094. (<<dynamic-cluster-setting,Dynamic>>)
  2095. List of IP addresses to allow.
  2096. `xpack.security.transport.filter.deny`::
  2097. (<<dynamic-cluster-setting,Dynamic>>)
  2098. List of IP addresses to deny.
  2099. `xpack.security.http.filter.allow`::
  2100. (<<dynamic-cluster-setting,Dynamic>>)
  2101. List of IP addresses to allow just for HTTP.
  2102. `xpack.security.http.filter.deny`::
  2103. (<<dynamic-cluster-setting,Dynamic>>)
  2104. List of IP addresses to deny just for HTTP.
  2105. `transport.profiles.$PROFILE.xpack.security.filter.allow`::
  2106. (<<dynamic-cluster-setting,Dynamic>>)
  2107. List of IP addresses to allow for this profile.
  2108. `transport.profiles.$PROFILE.xpack.security.filter.deny`::
  2109. (<<dynamic-cluster-setting,Dynamic>>)
  2110. List of IP addresses to deny for this profile.
  2111. include::security-hash-settings.asciidoc[]