[status] Rename setting to status.allowAnonymous as it applies to API as well as statusPage
This commit is contained in:
parent
cb52c70c55
commit
d8d1a1a65c
|
@ -44,5 +44,5 @@ error messages.
|
||||||
information and all requests.
|
information and all requests.
|
||||||
`ops.interval`:: *Default: 10000* Set the interval in milliseconds to sample system and process performance metrics.
|
`ops.interval`:: *Default: 10000* Set the interval in milliseconds to sample system and process performance metrics.
|
||||||
The minimum value is 100.
|
The minimum value is 100.
|
||||||
`statusPage.allowAnonymous`:: *Default: false* If authentication is enabled, setting this to `true` allows
|
`status.allowAnonymous`:: *Default: false* If authentication is enabled, setting this to `true` allows
|
||||||
unauthenticated users to view the Kibana server status page.
|
unauthenticated users to access the Kibana server status API and status page.
|
||||||
|
|
|
@ -123,7 +123,7 @@ module.exports = () => Joi.object({
|
||||||
profile: Joi.boolean().default(false)
|
profile: Joi.boolean().default(false)
|
||||||
}).default(),
|
}).default(),
|
||||||
|
|
||||||
statusPage: Joi.object({
|
status: Joi.object({
|
||||||
allowAnonymous: Joi.boolean().default(false)
|
allowAnonymous: Joi.boolean().default(false)
|
||||||
}).default()
|
}).default()
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ module.exports = function (kbnServer, server, config) {
|
||||||
kbnServer.mixin(require('./metrics'));
|
kbnServer.mixin(require('./metrics'));
|
||||||
}
|
}
|
||||||
|
|
||||||
const wrapAuth = wrapAuthConfig(config.get('statusPage.allowAnonymous'));
|
const wrapAuth = wrapAuthConfig(config.get('status.allowAnonymous'));
|
||||||
|
|
||||||
server.route(wrapAuth({
|
server.route(wrapAuth({
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
|
|
Loading…
Reference in a new issue