security-settings.asciidoc 81 KB

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