|
@@ -144,6 +144,36 @@ Set to `false` to disable the built-in token service. Defaults to `true` unless
|
|
|
The length of time that a token is valid for. By default this value is `20m` or
|
|
|
20 minutes. The maximum value is 1 hour.
|
|
|
|
|
|
+[float]
|
|
|
+[[api-key-service-settings]]
|
|
|
+==== API key service settings
|
|
|
+
|
|
|
+You can set the following API key service settings in
|
|
|
+`elasticsearch.yml`.
|
|
|
+
|
|
|
+`xpack.security.authc.api_key.enabled`::
|
|
|
+Set to `false` to disable the built-in API key service. Defaults to `true` unless
|
|
|
+ `xpack.security.http.ssl.enabled` is `false`. This prevents sniffing the API key
|
|
|
+ from a connection over plain http.
|
|
|
+
|
|
|
+`xpack.security.authc.api_key.hashing.algorithm`::
|
|
|
+Specifies the hashing algorithm that is used for securing API key credentials.
|
|
|
+See <<password-hashing-algorithms>>. Defaults to `pbkdf2`.
|
|
|
+
|
|
|
+`xpack.security.authc.api_key.cache.ttl`::
|
|
|
+The time-to-live for cached API key entries. A API key id and a hash of its
|
|
|
+API key are cached for this period of time. Specify the time period using
|
|
|
+the standard {es} <<time-units,time units>>. Defaults to `1d`.
|
|
|
+
|
|
|
+`xpack.security.authc.api_key.cache.max_keys`::
|
|
|
+The maximum number of API key entries that can live in the
|
|
|
+cache at any given time. Defaults to 10,000.
|
|
|
+
|
|
|
+`xpack.security.authc.api_key.cache.hash_algo`:: (Expert Setting)
|
|
|
+The hashing algorithm that is used for the
|
|
|
+in-memory cached API key credentials. For possible values, see <<cache-hash-algo>>.
|
|
|
+Defaults to `ssha256`.
|
|
|
+
|
|
|
[float]
|
|
|
[[realm-settings]]
|
|
|
==== Realm settings
|