security-settings.asciidoc 97 KB

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