elastic/kibana

Better error handling when SAML realm is not available under current license

Offen

#60.337 geöffnet am 16.03.2020

 (2 Kommentare) (1 Reaktion) (0 zugewiesene Personen)TypeScript (8.021 Forks)batch import
Feature:Security/AuthenticationTeam:Securityenhancementgood first issue

Repository-Metriken

Stars
 (19.065 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Currently if the ES license does not allow for SAML realm, Kibana simply throws the error below when launching the base URL for Kibana:

{"statusCode":401,"error":"Unauthorized","message":"Unauthorized"}

The ES logs clearly shows the underlying issue:

[2020-03-16T23:28:12,135][INFO ][o.e.x.s.r.a.s.SamlBaseRestHandler] [node-1] The 'saml' realm is not available under the current license

It will be nice for Kibana to detect this condition and report an intuitive error message to the UI.

Contributor Guide