Describe the issue:
I have trying to configure SAML auth using IDP file provided by my organization and its been going on since a long time and achieved the success of it. Need your help to fix the issue.
I don’t think, we are using the SSL Certs for IDP but I have it handy, so I have used it and got the same error.
Feb 13 05:44:56 elknlr2cr2kb01.us.dell.com opensearch-dashboards[109940]: {“type”:“log”,“@timestamp”:“2023-02-13T11:44:56Z”,“tags”:[“error”,“plugins”,“securityDashboards”],“pid”:109940,“message”:“Failed to get saml header: Authentication Exception :: {"path":"/_plugins/_security/authinfo","query":{},"statusCode":401,"response":"Authentication finally failed"}”}
Feb 13 05:44:56 elknlr2cr2kb01.us.dell.com opensearch-dashboards[109940]: {“type”:“error”,“@timestamp”:“2023-02-13T11:44:56Z”,“tags”:,“pid”:109940,“level”:“error”,“error”:{“message”:“Internal Server Error”,“name”:“Error”,“stack”:“Error: Internal Server Error\n at HapiResponseAdapter.toError (/apps/data/usr_share_opensearch-dashboards/src/core/server/http/router/response_adapter.js:143:19)\n at HapiResponseAdapter.toHapiResponse (/apps/data/usr_share_opensearch-dashboards/src/core/server/http/router/response_adapter.js:97:19)\n at HapiResponseAdapter.handle (/apps/data/usr_share_opensearch-dashboards/src/core/server/http/router/response_adapter.js:92:17)\n at Router.handle (/apps/data/usr_share_opensearch-dashboards/src/core/server/http/router/router.js:164:34)\n at runMicrotasks ()\n at processTicksAndRejections (internal/process/task_queues.js:95:5)\n at handler (/apps/data/usr_share_opensearch-dashboards/src/core/server/http/router/router.js:124:50)\n at exports.Manager.execute (/apps/data/usr_share_opensearch-dashboards/node_modules/@hapi/hapi/lib/toolkit.js:60:28)\n at Object.internals.handler (/apps/data/usr_share_opensearch-dashboards/node_modules/@hapi/hapi/lib/handler.js:46:20)\n at exports.execute (/apps/data/usr_share_opensearch-dashboards/node_modules/@hapi/hapi/lib/handler.js:31:20)\n at Request._lifecycle (/apps/data/usr_share_opensearch-dashboards/node_modules/@hapi/hapi/lib/request.js:371:32)\n at Request._execute (/apps/data/usr_share_opensearch-dashboards/node_modules/@hapi/hapi/lib/request.js:281:9)”},“url”:“http://elk-r2.dell.com/auth/saml/login?nextUrl=%2Fkibana%2F&redirectHash=false",“message”:"Internal Server Error”}
Not using the acs option any more and I have tried using _opendistro/_security?saml/acs and also tried configuring saml using both Okta and Dell SAML and it seems like, it is failing at request_id by cookies. Kindly help me fixing this issue.
check the indentation in your config file everything does not comes left alligned. check SAML documentation arrange everything according to spacing there
The given config in this thread was just copy pate of the original config, where the indentations are properly aligned. And no error found while running security_adming.sh.
@dmallick19 Did you check the logs in your reverse proxy? Do you pass a full response from the IDP to OpenSearch? What is your reverse proxy? Have you tried to bypass it just for testing?