Allow for elasticsearch.requestHeaders to be set to null

This commit is contained in:
Shaunak Kashyap 2016-04-14 17:55:28 -07:00
parent 81631ffc2e
commit f9f4b79626
No known key found for this signature in database
GPG key ID: 0512E188DDE4FF2A
4 changed files with 6 additions and 3 deletions

View file

@ -61,7 +61,9 @@
# must be a positive integer.
# elasticsearch.requestTimeout: 30000
# List of Kibana client-side headers to send to Elasticsearch
# List of Kibana client-side headers to send to Elasticsearch. To send *no* client-side
# headers, set this value to null, not []. Setting it to [] will send the default list
# of headers.
# elasticsearch.requestHeaders: [ authorization ]
# Time in milliseconds for Elasticsearch to wait for responses from shards. Set to 0 to disable.

View file

@ -30,6 +30,7 @@ wait for Elasticsearch to respond to pings.
`elasticsearch.requestTimeout:`:: *Default: 300000* Time in milliseconds to wait for responses from the back end or
Elasticsearch. This value must be a positive integer.
`elasticsearch.requestHeaders:`:: *Default: `[ 'authorization' ]`* List of Kibana client-side headers to send to Elasticsearch.
To send *no* client-side headers, set this value to null, not []. Setting it to [] will send the default list of headers.
`elasticsearch.shardTimeout:`:: *Default: 0* Time in milliseconds for Elasticsearch to wait for responses from shards. Set
to 0 to disable.
`elasticsearch.startupTimeout:`:: *Default: 5000* Time in milliseconds to wait for Elasticsearch at Kibana startup before

View file

@ -376,7 +376,7 @@ deprecated[4.2, The names of several Kibana server properties changed in the 4.2
+
*default*: `500000`
`elasticsearch.requestHeaders:` added[5.0]:: List of Kibana client-side headers to send to Elasticsearch.
`elasticsearch.requestHeaders:` added[5.0]:: List of Kibana client-side headers to send to Elasticsearch. To send *no* client-side headers, set this value to null, not []. Setting it to [] will send the default list of headers.
+
*default*: `[ 'authorization' ]`

View file

@ -22,7 +22,7 @@ module.exports = function ({ Plugin }) {
password: string(),
shardTimeout: number().default(0),
requestTimeout: number().default(30000),
requestHeaders: array().items(string()).single().default(DEFAULT_REQUEST_HEADERS),
requestHeaders: array().items().single().default(DEFAULT_REQUEST_HEADERS),
pingTimeout: number().default(ref('requestTimeout')),
startupTimeout: number().default(5000),
ssl: object({