[status] Rename setting to status.allowAnonymous as it applies to API as well as statusPage

This commit is contained in:
Lukas Olson 2016-05-13 15:36:56 -07:00
parent cb52c70c55
commit d8d1a1a65c
3 changed files with 4 additions and 4 deletions

View file

@ -44,5 +44,5 @@ error messages.
information and all requests.
`ops.interval`:: *Default: 10000* Set the interval in milliseconds to sample system and process performance metrics.
The minimum value is 100.
`statusPage.allowAnonymous`:: *Default: false* If authentication is enabled, setting this to `true` allows
unauthenticated users to view the Kibana server status page.
`status.allowAnonymous`:: *Default: false* If authentication is enabled, setting this to `true` allows
unauthenticated users to access the Kibana server status API and status page.

View file

@ -123,7 +123,7 @@ module.exports = () => Joi.object({
profile: Joi.boolean().default(false)
}).default(),
statusPage: Joi.object({
status: Joi.object({
allowAnonymous: Joi.boolean().default(false)
}).default()

View file

@ -11,7 +11,7 @@ module.exports = function (kbnServer, server, config) {
kbnServer.mixin(require('./metrics'));
}
const wrapAuth = wrapAuthConfig(config.get('statusPage.allowAnonymous'));
const wrapAuth = wrapAuthConfig(config.get('status.allowAnonymous'));
server.route(wrapAuth({
method: 'GET',