Hi Team
I have issue when setting up SAML login for kibana, my kibana is behind traefik proxy and getting "Internal server error`, whereas basic auth works fine for me.
sg_config:
authc:
basic_internal_auth_domain:
description: "Authenticate via HTTP Basic against internal users database"
http_enabled: true
transport_enabled: true
order: 1
http_authenticator:
type: basic
challenge: true
authentication_backend:
type: intern
saml_auth_idp:
description: "SAML Auth"
http_enabled: true
order: 0
http_authenticator:
type: 'saml'
challenge: true
config:
idp:
metadata_url: "<\metadata_url>"
entity_id: "<\idp_entity_id>"
sp:
entity_id: "https://<\service_fqdn>/saml"
kibana_url: "https://<\service_fqdn>"
subject_key: "email"
roles_key: "Roles"
exchange_key: "key"
authentication_backend:
type: noop
authz:
kibana.yml
searchguard.multitenancy.enabled: true ### SAML Auth searchguard.auth.type: "saml" searchguard.auth.debug: true searchguard.cookie.secure: true searchguard.cookie.isSameSite: None server.xsrf.whitelist: ["/searchguard/saml/acs", "/searchguard/saml/logout"]
Error- on browser
500 Internal server error https://service_fqdn/auth/saml/login?nextUrl=%2F
Error - on kibana server
{“type”:“log”,“@timestamp”:“2021-03-30T16:59:51Z”,“tags”:[“error”,“http”],“pid”:7,“message”:“Error: expected ‘location’ header to be set\n at HapiResponseAdapter.toRedirect (/usr/share/kibana/src/core/server/http/router/response_adapter.js:112:13)\n at HapiResponseAdapter.toHapiResponse (/usr/share/kibana/src/core/server/http/router/response_adapter.js:94:19)\n at HapiResponseAdapter.handle (/usr/share/kibana/src/core/server/http/router/response_adapter.js:81:17)\n at Router.handle (/usr/share/kibana/src/core/server/http/router/router.js:164:34)\n at process._tickCallback (internal/process/next_tick.js:68:7)”}
“type”:“error”,“@timestamp”:“2021-03-30T16:59:51Z”,“tags”:,“pid”:7,“level”:“error”,“error”:{“message”:“Internal Server Error”,“name”:“Error”,“stack”:“Error: Internal Server Error\n at HapiResponseAdapter.toInternalError (/usr/share/kibana/src/core/server/http/router/response_adapter.js:69:19)\n at Router.handle (/usr/share/kibana/src/core/server/http/router/router.js:177:34)\n at process._tickCallback (internal/process/next_tick.js:68:7)”},“url”:{“protocol”:null,“slashes”:null,“auth”:null,“host”:null,“port”:null,“hostname”:null,“hash”:null,“search”:“?nextUrl=%2F”,“query”:{“nextUrl”:“/”},“pathname”:“/auth/saml/login”,“path”:“/auth/saml/login?nextUrl=%2F”,“href”:“/auth/saml/login?nextUrl=%2F”},“message”:“Internal Server Error”}