security-settings.asciidoc 105 KB

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