im deploying opensearch and opensearch-dashboards using helm,
and when configuring SSO Openid with keycloak,
im facing this error:
“Error: failed when trying to obtain the endpoints from your IdP”
and : “Error : unable to get local issuer certificate”
Relevant Logs or Screenshots:
“ERROR: unable to get local issuer certificate”
“Error: failed when trying to obtain the endpoints from your idp”
and also:
status code 502
“summary”: “[63] services are unavailable”, “detail”: “see the status page for more information”…
“waiting for opensearch”
@idan17 So the keycloak is running with this CA cert then or it has signed the Keycloak’s certificate?
The certificate that Keycloak presents to OpenSearch must have Keycloak’s FQDN in its SAN.
they have the exact same certificate chain, and root.
my team also deployed the keycloak ,
and were using wildecard certificates so it is exactly the same ones
plus, i changed the portname paramater in the service for the opensearch values.yml to https,
and now instead of 502 im getting bad certificate error when accessing my opensearch server
on the default configuration (http) -
i got an error on server saying " SSL Exception not an SSL/TLS record"
when i changed it as above, now my service run https:9200,
and im not getting the same error but a new one saying " BAD_certificate",
the thing is im using the same certificate as in my ingress:
but when i do that i get an error validating the configuration that the key [opensearch_security].openid.certificate : “definition for this key is missing”
how does it makes sense if its the same as in the docs
thank you all guys i have finally managed to solve the error,
my problem was that i should have added the following parameters for my opensearch_dashbaords.yml:
@idan17 Since it is relevant to your shared configuration, if you plan on using multi-tenancy, you may also want to change security_tenant to securitytenant in the opensearch.requestHeadersAllowList. Hopefully this helps you or someone else out in the future.