Unable to login to the Opensearch dashboard… Once hit the url getting the below error logs…
Dashboard version : 2.9.0 Image
Error: failed parsing SAML config
at SecurityClient.getSamlHeader (/usr/share/opensearch-dashboards/plugins/securityDashboards/server/backend/opensearch_security_client.ts:176:15)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at /usr/share/opensearch-dashboards/plugins/securityDashboards/server/auth/types/saml/routes.ts:65:30
at Router.handle (/usr/share/opensearch-dashboards/src/core/server/http/router/router.js:163:44)
at handler (/usr/share/opensearch-dashboards/src/core/server/http/router/router.js:124:50)
at exports.Manager.execute (/usr/share/opensearch-dashboards/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
at Object.internals.handler (/usr/share/opensearch-dashboards/node_modules/@hapi/hapi/lib/handler.js:46:20)
at exports.execute (/usr/share/opensearch-dashboards/node_modules/@hapi/hapi/lib/handler.js:31:20)
at Request._lifecycle (/usr/share/opensearch-dashboards/node_modules/@hapi/hapi/lib/request.js:371:32)
at Request._execute (/usr/share/opensearch-dashboards/node_modules/@hapi/hapi/lib/request.js:281:9)
{“type”:“log”,“@timestamp”:“2023-08-14T10:58:09Z”,“tags”:[“error”,“plugins”,“securityDashboards”],“pid”:1,“message”:“Failed to get saml header: Error: Error: failed parsing SAML config”}
{“type”:“error”,“@timestamp”:“2023-08-14T10:58:09Z”,“tags”:,“pid”:1,“level”:“error”,“error”:{“message”:“Internal Server Error”,“name”:“Error”,“stack”:"Error: Internal Server Error\n at HapiResponseAdapter.toError (/usr/share/opensearch-dashboards/src/core/server/http/router/response_adapter.js:143:19)\n at HapiResponseAdapter.toHapiResponse (/usr/share/opensearch-dashboards/src/core/server/http/router/response_adapter.js:97:19)\n
@bhanu1 Have you tried to use the metadata_url instead of the metadata_file? It is more efficient as any change in the Azure SAML configuration requires copying a new XML config file from Azure to your OpenSearch environment.
Have you noticed any errors in the OpenSearch logs during the start-up?
What permission, user and group did you assign to SAML_UAT.xml file?
Also, as per documentation, the exchange_key should have at least 32 characters.
Hi @pablo , Yeah still i am getting saml parsing error.
When I upgrade from 1.2.4 opensearch version to 2.3.0 or 2.9.0 its working.
But when I am doing fresh deployment of 2.3.0 or 2.9.0 version, getting saml parsing error in opensearch dashboard pod logs. I am using same yaml configuration code for 1.2.4 version and 2.3.0/2.9.0 version, why I am getting this error still not understanding