Good afternoon,
I am working on enabling SSO within my test environment and I was able to get everything registered and created on my end. (sp_metadata file and yml file update) Once I made the update on the ES yml and Kibana yml file on my end, Kibana goes on a service loop every 5 seconds and throws these errors out. Once I comment out the xpack settings in kibana yml, it goes back to basic authentication and I am able to login successfully. Can someone please explain to me what this error means?
My yml files are below-I have masked server name for security reasons.
Kibana yml xpack settings
#xpack.security.authProviders: [saml, basic] #xpack.security: enabled
ES yml xpack settings
xpack.security.enabled: true
xpack.security.authc.token.enabled: true
xpack.security.authc.realms:
native.realm1:
order: 0
xpack.security.authc.realms.saml.saml1:
order: 1
idp.metadata.path: /etc/elasticsearch/config/saml/idp-metadata.xml
idp.entity_id: "https://server.sso.com/auth/sps/samlidp2/saml20"
sp.entity_id: "https://server.com:5601/app/kibana"
sp.acs: "https://server.com:5601/api/security/v1/saml"
sp.logout: "https://server.com:5601/logout"
attributes.principal: "emailaddress"
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: /etc/elasticsearch/config/certs/elastic-certificates.p12
xpack.security.transport.ssl.truststore.path: /etc/elasticsearch/config/certs/elastic-certificates.p12
xpack.security.http.ssl.enabled: true
xpack.security.http.ssl.keystore.path: /etc/elasticsearch/config/certs/elastic-certificates.p12
xpack.security.http.ssl.truststore.path: /etc/elasticsearch/config/certs/elastic-certificates.p12
{"type":"log","@timestamp":"2019-06-09T19:06:07Z","tags":["fatal","root"],"pid":49792,"message":"{ ValidationError: child \"xpack\" fails because [child \"security\" fails because [\"security\" must be an object]]\n at Object.exports.process (/usr/share/kibana/node_modules/joi/lib/errors.js:196:19)\n at internals.Object._validateWithOptions (/usr/share/kibana/node_modules/joi/lib/types/any/index.js:675:31)\n at module.exports.internals.Any.root.validate (/usr/share/kibana/node_modules/joi/lib/index.js:146:23)\n at Config._commit (/usr/share/kibana/src/legacy/server/config/config.js:139:35)\n at Config.set (/usr/share/kibana/src/legacy/server/config/config.js:108:10)\n at Config.extendSchema (/usr/share/kibana/src/legacy/server/config/config.js:81:10)\n at extendConfigService (/usr/share/kibana/src/legacy/plugin_discovery/plugin_config/extend_config_service.js:45:10) name: 'ValidationError' }"}
{"type":"log","@timestamp":"2019-06-09T19:06:14Z","tags":["plugin","warning"],"pid":49812,"path":"/usr/share/kibana/src/legacy/core_plugins/ems_util","message":"Skipping non-plugin directory at /usr/share/kibana/src/legacy/core_plugins/ems_util"}
{"type":"log","@timestamp":"2019-06-09T19:06:15Z","tags":["fatal","root"],"pid":49812,"message":"{ ValidationError: child \"xpack\" fails because [child \"security\" fails because [\"security\" must be an object]]\n at Object.exports.process (/usr/share/kibana/node_modules/joi/lib/errors.js:196:19)\n at internals.Object._validateWithOptions (/usr/share/kibana/node_modules/joi/lib/types/any/index.js:675:31)\n at module.exports.internals.Any.root.validate (/usr/share/kibana/node_modules/joi/lib/index.js:146:23)\n at Config._commit (/usr/share/kibana/src/legacy/server/config/config.js:139:35)\n at Config.set (/usr/share/kibana/src/legacy/server/config/config.js:108:10)\n at Config.extendSchema (/usr/share/kibana/src/legacy/server/config/config.js:81:10)\n at extendConfigService (/usr/share/kibana/src/legacy/plugin_discovery/plugin_config/extend_config_service.js:45:10) name: 'ValidationError' }"}