Hi,
I had been trying to get Kibana to work with SAML authentication, but to no avail.
Kibana Config
server.name: kibana
server.host: "0"
elasticsearch.url: https://192.168.99.100:9200
elasticsearch.username: elastic
elasticsearch.password: elastic
xpack.monitoring.ui.container.elasticsearch.enabled: true
xpack.monitoring.enabled: false
xpack.monitoring.elasticsearch.username: elastic
xpack.monitoring.elasticsearch.password: elastic
xpack.security.authProviders: [saml]
server.xsrf.whitelist: [/api/security/v1/saml]
server.ssl.enabled: true
server.ssl.key: /usr/share/keys/host.key
server.ssl.certificate: /usr/share/keys/host.cert
elasticsearch.ssl.verificationMode: certificate
elasticsearch.ssl.certificateAuthorities: [ "/usr/share/keys/certificate.pem" ]
xpack.security.encryptionKey: "something_at_least_32_characters_allrite_I_Will_Try"
Elastic Config
cluster.name: "docker-cluster"
network.host: 0.0.0.0
discovery.zen.minimum_master_nodes: 1
xpack.license.self_generated.type: trial
xpack.security.enabled: true
xpack.ssl.keystore.path: certs/elastic-certificates.p12
xpack.ssl.truststore.path: certs/elastic-certificates.p12
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.http.ssl.enabled: true
xpack.security.authc.token.enabled: true
xpack.security.authc.realms.saml1:
type: saml
order: 2
idp.metadata.path: "x-pack/elk-base-SAML-Auth0-IDP-metadata.xml"
idp.entity_id: "urn:auth0:elk-base:SAML-Auth0-IDP"
sp.entity_id: "https://192.168.99.100:5601"
sp.acs: "https://192.168.99.100:5601/api/security/v1/saml"
sp.logout: "https://192.168.99.100:5601/logout"
attributes.principal: "nameid:persistent"
attributes.groups: "roles"
xpack.security.authc.realms.native1:
type: native
order: 0
The error I am getting is :
kibana-x-pack | {"type":"log","@timestamp":"2018-02-12T07:02:36Z","tags":["info","authentication"],"pid":1,"message":"Authentication attempt failed: [security_exception] Cannot find any matching realm for [SamlPrepareAuthenticationRequest{realmName=null, assertionConsumerServiceURL=https://0:5601/api/security/v1/saml}]"}
I followed the documentation but is stuck here.
Any help would be much appreciated.