security-settings.asciidoc 66 KB

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