we’re in the process of integrating our keycloak instance with searchguard.
We followed the documentation for the latest version, but kibana challenges with a login/password and responds with:
If Kibana challenges with a 401 and Basic Auth, this usually means that no authentication domain was able to authenticate the user properly. However, if OIDC is configured correctly and the user could not be authenticated, you should see a Kibana / Search Guard error page rather than the Basic Auth dialogue.
How does your sg_config.yml and kibana.yml look like?
In sg_config, you need two authentication domains:
Basic Auth for the Kibana server user
OIDC for “regular” Kibana users
You need 1) because for the Kibana server user Kibana only allows Basic authentication. This is a Kibana limitation that we can’t work around.
Can you post both sg_config.yml and kibana.yml? Also, if you see the Basic Auth popup, are there any corresponding messages in the ES logs?
I realised there was something wrong with my apache proxy, which I got rid of now I don’t need it anymore.
Openid works as expected now, thanks for trying to help a PBCAK !