-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Setup OpenID Connect with Latest Opensearch/Dashboards and Keycloak #1138
Comments
should we move this to https://github.com/opensearch-project/security-dashboards-plugin/ |
@seraphjiang @cliu123 This is a security plugin configuration related issue. We can move it. |
@seraphjiang @aoguan1990 @opensearch-project/transfer-request Please transfer the issue. Thanks! |
@cliu123 @seraphjiang Keycloak used standard OpenID Connect protocol, which is supported by our existing OIDC authentication handler. But we do need reproduce the issue based on information provided by the requester and confirm if this is a valid bug or configuration issue. |
Thanks @cliu123 and @aoguan1990 let's transfer to right repo and see what we could help |
@aoguan1990 is right. I mean Kerboros is not supported. OIDC is supported. |
@wantdrink I too had this problem (but with Okta OpenID) and resolved it with opensearch setting What clued me onto this setting was I was able to get it to work in a docker-compose setup on the same machine but when I separated the dashboard to a different machine it failed to work and I kept getting the 401 error. Hope this helps. |
Got the same with opensearch 2.3.0, dashboards 2.3.0, OpenID + Google IdP. |
@olddanmer I noticed that you enable |
Thanks @linuxboyng . Will try with the same configs. |
Any update on this ? I am unable to find any documentation on setting up opensearch with keycloak. Thank you. |
Hi @wantdrink, based on what I observed, I think for the dashboards setting you have:
You may need to use |
Closing as potentially resolved by @RyanL1997 's suggestions since we have not heard back. Please feel free to re-open if not the case. |
Hi there,
I've installed opensearch + dashboards 2.3.0 with the latest chart. Also Keycloak bitnami/keycloak:19.0.2.
After configured as https://opensearch.org/docs/latest/security-plugin/configuration/openid-connect/#opensearch-dashboards-single-sign-on describes, and log in opensearch dashboard, it failed with:
{"statusCode":401,"error":"Unauthorized","message":"Unauthorized"}
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Login in Keycloak UI successfully and redirected to dashboards.
OpenSearch Version
2.3.0
Dashboards Version
2.3.0
Plugins
opensearch:
dashboards:
Configuration snippet in opensearch values:
Config snippet in dashboard values:
Finally the log shows:
BTW in https://opensearch.org/docs/latest/security-plugin/configuration/openid-connect/#opensearch-dashboards-single-sign-on those links in config are /auth/realms/xxx as below. I removed the /auth in the URL and not sure if that's a correct change in 2.3.0.
Thanks.
The text was updated successfully, but these errors were encountered: